[R] how to print a plot

Weiming Zhang Weiming.Zhang at uchsc.edu
Tue Sep 16 01:16:49 CEST 2003


Hi, Thank both of you.

I tried everything. pdf(file="out.pdf") gave me a damaged pdf file. ps()
did not print. ps("out.ps") gave me a ps file with badly drawn graph and
could not be printed. I am using RH linux 7.2.

Thanks again.

weiming Zhang


On Mon, 2003-09-15 at 16:06, Jason Turner wrote:
> On Tue, 2003-09-16 at 08:56, Weiming Zhang wrote:
> > Hi,
> > 
> > I am using R-1.7.1 on Linux. I integrated XEMACS with R. Could anybody
> > tell me how to print a plot? I used plot function to make some graphs
> > and then I wanted to print them or to save them to files. But I could
> > not find out how to do it.
> 
> Have you tried:
> help(Devices) 
> help(pdf)
> 
> What I do:
> 
> pdf(file="myplots.pdf")
> plot(...)
> dev.off()
> 
> Use Acrobat or gv to view the pdf files.  Postscript is also good, but
> not as universally understood; I have many coleagues who work in very
> standard Windows environments, where ghostscript is unknown.  PDF is a
> very sensible choice for e-mailing graphs.
> 
> 
> -- 
> Indigo Industrial Controls Ltd.
> http://www.indigoindustrial.co.nz
> +64-(0)21-343-545
> 
> 
> 
>




More information about the R-help mailing list