[R] Cairo on windows

hadley wickham h.wickham at gmail.com
Thu Sep 27 18:57:52 CEST 2007

You could also try the cairoDevice package, which should definitely
work with the gtk libraries that you probably have from installing


On 9/27/07, Yves Moisan <ymoisan at groupesm.com> wrote:
> 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 window
> sometimes
> - a simple plot or qplot command works, e.g. qplot(x=kg.hab,y=Cout.ton,
> data=ech2).  When one starts to add xlab, ylab and main then things start
> getting shaky to the point the display becomes blank.  At that point, even
> reverting back to a simple plotting command that worked 5 seconds ago won't
> bring back the display.  One has to dev.off() and start again.
> Besides the interactive windows display, I also wanted to use Cairo's PNG
> support so I went and tried one of my
> png(filename = ...)
>  commands with
> CairoPNG(filename = ...)
>  and the output was also blank.
> Are there additional steps besides a package install of Cairo I have to
> worry about ?
> TIA,
> Yves Moisan
> --
> View this message in context: http://www.nabble.com/Cairo-on-windows-tf4529124.html#a12923700
> Sent from the R help mailing list archive at Nabble.com.
>         [[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


More information about the R-help mailing list