When I use pdf("somefile.pdf") to save my plots to a pdf file, everything seems to work. No error messages or whatsoever. Still the result is screwed (file size is NOT 0 KB) but I can’t open it using preview nor adobe reader. I am running Mac OS 10.6 and the latest R Studio release. Any suggestions? Note png()works perfectly fine, so does sweave and pdf plots from ggplot.
When I use pdf(somefile.pdf) to save my plots to a pdf file, everything seems
Share
Did you remember to close the file via
dev.off()before trying to view it?(See also: problem saving pdf file in R with ggplot2 )