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. ______________________________________________ R-help@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.