[R] SVG output on Windows OS
dwinsemius at comcast.net
Sun Aug 2 02:39:56 CEST 2009
It says cairo is not available. (Once you read this in a proper
monospaced font, anyway.)
On Aug 1, 2009, at 4:27 PM, Michael Roessler wrote:
> Thank you, David.
> Cairo is installed and loaded.
> cairoDevice is installed and loaded.
> RGtk2 is installed and loaded (which installed GTK+)
> yet I still get false for cairo:
> > capabilities()
> jpeg png tiff tcltk X11 aqua http/ftp
> TRUE TRUE TRUE TRUE FALSE FALSE TRUE
> libxml fifo cledit iconv NLS profmem cairo
> TRUE FALSE TRUE TRUE TRUE FALSE FALSE
You need to investigate why your Windows cairo installation is not
> > Cairo.capabilities()
> png jpeg tiff pdf svg ps x11 win
> TRUE FALSE FALSE TRUE TRUE TRUE FALSE TRUE
> > ggsave(file="chart.svg")
> Saving 6" x 6" image
> Error: 'svg' is not an exported object from 'namespace:grDevices'
> I'm lost as to how to produce the svg output on windows. All works
> suitably on Linux.
> Michael Roessler, CFA
> michael.roesler at keyevent.com
> On Sat, Aug 1, 2009 at 6:15 AM, David Winsemius <dwinsemius at comcast.net
> > wrote:
> On Jul 31, 2009, at 6:41 PM, Michael Roessler wrote:
> How may one save a graphic as svg on Windows? The svg() command is
> recognized and functions well on Linux, etc., but not on Windows, it
> I'm trying to use Hadley Wickam's ggplot2 and I would like to be
> able to
> save created charts as svg for later input into Illustrator. I am
> able to
> accomplish this workflow under Linux, but I don't know how to get R to
> recognize the svg() command under Windows. I have loaded RsvgDevice,
> and cairoDevice in my attempts. The problem seems to me to be directly
> related to enabling R to produce svg output on Windows, rather than
> to ggplot2.
> What does capabilities() return?
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
David Winsemius, MD
West Hartford, CT
More information about the R-help