Displaying 3 results from an estimated 3 matches for "cairowin".
Did you mean:
airwin
2011 Feb 15
1
Using rasterImage on a CairoWin device prevents adding further elements to device?
...ve been playing around with it, but found that after I use
the rasterImage function, I can't add anything any more to the device,
eg :
img <- readPNG(system.file("img", "Rlogo.png", package="png"))
r = as.raster(img[,,1:3])
r[img[,,4] == 0] = "white"
CairoWin()
plot(1:2,1:2,type="l")
rasterImage(r,1,1,2,2)
points(seq(1,2,by=0.1),seq(2,1,by=-0.1),col="black")
The points are not plotted anymore.
If I use the normal plotting device, I see the points plotted on top
of the image.
Cheers
Joris
--
Joris Meys
Statistical consultant
Gh...
2007 Sep 27
1
Cairo on windows
Hi All,
I just installed Cairo on R 2.5.1 on windows XP. My hope was to get to see
the transparency output e.g. http://had.co.nz/ggplot2/stat_smooth.html
ggplot2 - stat_smooth , which I finally managed to do. However, I find the
Cairo device, which I access either through CairoWin() or Cairo(type="win"),
is pretty shaky in a number of respects :
- whatever portion of the Cairo device that is covered by the R command
window does not get drawn. I noticed changing the size of the Cairo window
by dragging one of its corners with the mouse does refresh the whole windo...
2013 Sep 24
1
recordPlot() on non-interactive graphics device?
...of the current
graphics device."
Is the intention that recordPlot() should be able to record from _any
type_ of graphics device, or only for _interactive_ ones? For
instance,
windows(); plot(1:10); g <- recordPlot(); dev.off();
x11(); plot(1:10); g <- recordPlot(); dev.off();
Cairo::CairoWin(); plot(1:10); g <- recordPlot(); dev.off();
all produce 'recordplot' objects that replot the figure with
replayPlot(g), whereas for instance
png("foo.png"); plot(1:10); g <- recordPlot(); dev.off();
pdf("foo.pdf"); plot(1:10); g <- recordPlot(); dev.off();
p...