R, I use
par to prepare four boxplots (using
boxplot) as a single image, which I save with the
png() command. This image is included in a LaTeX document with
\includegraphics. I have experimented with exporting different image sizes, and changing the scaling in LaTeX, but the image quality is still poor. I don't really have time to learn
knitr right now. What settings should I use to optimize the image quality?
Saving the image from R as a PDF rather than a PNG file solved this:
pdf('theFile.pdf') # par... # plot... dev.off()
I did not specify image dimensions in R. The image quality in the final PDF was excellent, even though I scaled it to 80%.