[R-SIG-Mac] Problems with savePlot() and postscript under Snow Leopard

Hannes Nietnagel h.nietnagel at googlemail.com
Sat Feb 13 19:51:59 CET 2010


Dear all,

since my problem could not be solved in the general R mailing list,
I'll post the issue again in this specific mailing list.

I tried:
> iris
> species.n <- as.numeric(Species)
> plot(iris, col = species.n)
> savePlot(filename="IrisTestPlot", type="png")

and got the error message:
Fehler in savePlot(filename = "IrisTestPlot", type = "png") :
 kann nur aus 'X11(type="*cairo")' Devices kopieren

(sorry, I have a german version of R).

I tried:
> postscript("IrisTestPlot.eps", paper="special",height=6,width=6,onefile=FALSE,horizontal=FALSE)

 and

> postscript(file="IrisTestPlot2.pdf", onefile = FALSE, horizontal = FALSE, paper = "special", width = 8, height = 8)

in both cases there are files produced that cannot be opened. Error
message: the bounding box is missing.


According to Michael's advice I tried:
> quartz.save("IrisTestPlotquartz.png","png")
and got:
postscript
        5

but no file.

as well as:
> system('open IrisTestPlotquartz.png')

It states that the files does not exist.

And I tried:
> plot(iris)
> dev.cur()
And got the answer:
postscript
         3
and again no file.



I use 64 bit R under Snow Leopard.

> sessionInfo()
R version 2.10.1 (2009-12-14)
x86_64-apple-darwin9.8.0

locale:
[1] de_DE.UTF-8/de_DE.UTF-8/C/C/de_DE.UTF-8/de_DE.UTF-8

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

loaded via a namespace (and not attached):
[1] tools_2.10.1


What could be the problem and how can I solve it?
Thank you very much in advance for your time and advices!

Hannes



More information about the R-SIG-Mac mailing list