[R] postscript( does not save the plot

Sarah Goslee sarah.goslee at gmail.com
Tue Aug 16 19:35:29 CEST 2011


Hi,

On Tue, Aug 16, 2011 at 1:32 PM, Alaios <alaios at yahoo.com> wrote:
> Dear all,
> I am using the following code to write the plot to an eps format
>
> postscript(file="test.eps",horizontal=FALSE)
>
> boxplot(test[30,1:500],test[90,1:500],test[150,1:500],test[210,1:500],test[270,1:500],test[330,1:500],test[390,1:500],names=c("1","3","5","8","10","13","1"),outline=FALSE,ylim=c(0.01,50),log="y", xlab = "xvalue",ylab="yvalue",boxwex=0.5, pars =list(whisklwd=0,staplelwd=0))
>
> dev.off()

A reproducible example would be a lot more help.

> This creates a 6kb eps file, that can not be opened by any program. I tired with photoshop gimp, acrobat reader. This is the normal process I follow to save my plots.

And on what OS, version of R, etc? This could be a system problem,
so we need to know what that system is. sessionInfo() would be
helpful.

> dev.off always returns 1.
>
> and the boxplot function succesfullu does the plot in the screen.
>
> What might be the problem?
>
> I would like to thank you in advance for your help
>
> B.R
> Alex

Sarah


-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list