This is less of a question than a warning. In LyX 2.1.0 with pgfSweave under Ubuntu 10.04 I've been trying to generate a number of plots with a for loop. For example <<fig=TRUE>>= for ...
In 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 ...