So I guess the question to be answered by the OP now is what code he was using and what machine specifics he is working with.

The bottom of my savePlot help page says [Package grDevices version 2.8.1 Index].

Is the difference due to our respective platforms (here Mac 10.5.6, sessionInfo below) or to a difference in versions?

--
David Winsemius

> sessionInfo()
R version 2.8.1 Patched (2009-01-07 r47515)
i386-apple-darwin9.6.0

locale:
en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] splines stats graphics grDevices utils datasets methods base

other attached packages:
[1] spatstat_1.14-10 deldir_0.0-7 gpclib_1.4-3 mgcv_1.4-2 maptools_0.7-20 [6] foreign_0.8-33 sp_0.9-32 RColorBrewer_1.0-2 MASS_7.2-45 KernSmooth_2.22-22 [11] Design_2.1-2 Hmisc_3.5-2 surv2sample_0.1-2 survival_2.34-1

loaded via a namespace (and not attached):
[1] cluster_1.11.12 grid_2.8.1      lattice_0.17-20 tools_2.8.1


On Mar 1, 2009, at 6:21 PM, Gabor Grothendieck wrote:

If you are able to switch to Windows it does seem to be supported there
on savePlot.

Usage
savePlot(filename = "Rplot",
        type = c("wmf", "emf", "png", "jpg", "jpeg", "bmp",
                 "tif", "tiff", "ps", "eps", "pdf"),
        device = dev.cur(),
        restoreConsole = TRUE)

On Sun, Mar 1, 2009 at 6:15 PM, David Winsemius <dwinsem...@comcast.net > wrote:
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:

savePlot {grDevices}
R Documentation
Save Cairo X11 Plot to FileDescription
Save the current page of a cairo X11() device to a file.

Usage
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?
--
David Winsemius



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

Christophe

The help page for savePlot does not suggest that it would be of any value
in saving plots as postscript files.

?postscript
?Devices



______________________________________________
R-help@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.


______________________________________________
R-help@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.

Reply via email to