[R] Sweave and ggplot2

Ken Knoblauch knoblauch at lyon.inserm.fr
Tue Sep 25 09:01:20 CEST 2007


Julien Barnier <julien <at> no-log.org> writes:

> 
> Hi,
> When I try this example at work, I got an error message during Sweave
> which is close from something like "warning : semitransparency not
> supported by this device". When I try at home (with the given
> sessionInfo), I got no warning but in both the cases the result is the
> same : an empty pdf file for the figure and an error during pdflatex
> compilation.
> 
> I've put online an example Rnw file and the almost empty pdf produced
> here :
> 
> http://dd.nozav.org/transferts/
> 
> Thanks in advance for any help.

This might be a case of FAQ 7.22 since ggplot(2) like lattice depend on grid.
I would try wrapping the ggplot commands in a print statement.

HTH,

ken



More information about the R-help mailing list