Skip to content
Prev 6887 / 15075 Next

Problems with savePlot() and postscript under Snow Leopard

On Feb 13, 2010, at 4:08 PM, Hannes Nietnagel wrote:

            
I think it is telling you which graohics device is open for plotting.
From a fresh R session:

 > ?quartz
starting httpd help server ... done
 > ?postscript
 > species.n <- as.numeric(iris$Species)
 > png("test.png")
 > plot(iris, col = species.n)
 > dev.off()
null device
           1
 > postscript("test.eps")
 > plot(iris, col = species.n)
 > dev.off()
null device
           1

I now have two files in my working directory (albeit with different  
aspect ratios). The test.eps file can be read by Preview although it  
needs to be converted to pdf to be displayed,  and then appears  
perfectly normal to me. The help page for postscript() says that  
single plots are eps by default, so I just named it to correspond to  
htat promise. If you post the console message and describe more fully  
what you mean by "cannot produce a decent .eps file", someone might be  
able to comment more fully.