[R] simultaneous plots

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Dec 3 12:53:19 CET 2008


On Wed, 3 Dec 2008, David Epstein wrote:

>
>
>
> Prof Brian Ripley wrote:
>>
>> How about dev.copy2pdf ?
>>
>
> I put the following into a script:
> quartz(...)
> ....#many graphics commands
> dev.copy2pdf(pdf,file="ratio1.pdf")

Just

dev.copy2pdf(file="ratio1.pdf")



>
> and then sourced the script. I got the error message
> Error in pdfFonts(family) :
>  invalid arguments in 'pdfFonts' (must be font names)
>
> I found the various help files on dev.copy and dev.next, etc very hard to
> understand. And I have no idea how to fix the error. I'm trying to use
> defaults as much as I can.
>
> Could you possibly give a few more lines of code by way of example, Brian?
> And is a dev.off() command needed after the dev.copy(....)?
> Thanks a lot for your helpful replies to so many queries. They are much
> appreciated.
> David
>
> -- 
> View this message in context: http://www.nabble.com/simultaneous-plots-tp20802447p20810628.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list