[R] Sweave and ggplot2
Julien Barnier
jbarnier at ens-lsh.fr
Tue Sep 25 10:09:17 CEST 2007
Hi Ken,
> 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.
Yes, you're right. Replacing :
<<fig=TRUE>>=
ggplot(d,aes(y=t,x=u)) + geom_point(colour=alpha('black', 0.05))
@
with :
<<fig=TRUE>>=
print(ggplot(d,aes(y=t,x=u)) + geom_point(colour=alpha('black', 0.05)))
@
made the whole thing work.
Thanks a lot !
Julien
--
Julien Barnier
Groupe de recherche sur la socialisation
ENS-LSH - Lyon, France
More information about the R-help
mailing list