[R] capturing a figure to PDF or Image
Berend Hasselman
bhh at xs4all.nl
Tue Sep 6 10:00:05 CEST 2011
eranid wrote:
>
> Thank you Sarah and David,
>
> I only used a simple plot, and remembered to dev.off().
> attached is the session:
>
>> plot(c(1,2,3),c(3,2,4))> jpeg("test.jpg")> dev.off()RStudioGD
> 2 > sessionInfo()R version 2.13.1 (2011-07-08)
>
Put the statement jpeg("test.jpg") BEFORE plot(...).
Berend
--
View this message in context: http://r.789695.n4.nabble.com/capturing-a-figure-to-PDF-or-Image-tp3791480p3792815.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list