[R] Can't save a graph to pdf in R for MacOS

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Jun 26 13:32:06 CEST 2003


On Thu, 26 Jun 2003, p.b.pynsent wrote:

> I do not have an R solution but use eps2pdf (a Perl script)
> This can be installed by Fink
> http://sourceforge.net/projects/fink/.

eps2pdf runs GhostScript: so does the R device driver bitmap().  Does the
latter work on your system?  If so it would save you some steps.

> On Wednesday, June 25, 2003, at 03:41  am, Sébastien Plante wrote:
>
> > Hi,
> >
> > I am using R 1.7.1 (carbon) for MacOS and I am running it on MacOS X
> > 10.2.6. When I send a graph to the pdf device (or any other devices),
> > I get a zero KB file name "Rplots.pdf".
> >
> > Before sending my graph to the output, I did:
> >
> > > dev.off()
> > > pdf()
> > > boxplot(... my graph commands...)
> > > dev.off()
> >
> > Is this the correct procedure?  I did the same procedure on another PC
> > running Linux (R 1.6) and it work well.
> >
> > Please help!
> >
> > Thanks,
> >
> > Sébastien Plante
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> >
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list