[R] probleme with savePlot (to eps)
dwinsemius at comcast.net
Mon Mar 2 00:15:54 CET 2009
Unfortunately your burning desire to use savePlot for this purpose is
not going to reconfigure the capabilities of that function. Just read
the help page of savePlot:
Save Cairo X11 Plot to FileDescription
Save the current page of a cairo X11() device to a file.
savePlot(filename = paste("Rplot", type, sep="."), type = c("png",
"jpeg", "tiff", "bmp"), device = dev.cur())
Do you see "ps" or "eps" in the supported types? I do not. Why would
you expect be a warning not to use a type of device that was not
documented as possible.
Have you looked at dev.copy or dev.print as a method of getting the
user choice of screen displayed graphics to an output file?
On Mar 1, 2009, at 6:02 PM, Christophe Genolini wrote:
> Thanks for your answer.
>> Use the postscript device to save .ps or .eps files.
> Unfortunatly, I can't. I am using savePlot in a package. Several
> graphs (up to 100) are exported at the same time and I would like
> the user to chose the extension. It is why I need savePlot.
> Beside, I did not find any warning again postscript in the help page
> for savePlot. Where did you get this information ? I am using R 2.8.1
>> The help page for savePlot does not suggest that it would be of any
>> value in saving plots as postscript files.
More information about the R-help