Hi John: Use print before qplot or ggplot. Something like this: <<TV,fig=TRUE,echo=FALSE>>= print(qplot(subscriber,data=TV09,geom="bar",fill=subscriber, xlab=NULL,ylab=NULL)+coord_flip()+ opts(legend.position="none")) @ Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA > --- On Fri, 7/24/09, John Lipkins <john.lipk...@googlemail.com> > wrote: > > > From: John Lipkins <john.lipk...@googlemail.com> > > Subject: GGPlot 2 and odfweave > > To: "ggplot2" <ggpl...@googlegroups.com> > > Date: Friday, July 24, 2009, 3:42 PM > > > > Hey, > > > > Is there anyone here with experience in working with > qplot > > and > > odfweave? The problem that I'm experiencing is that > when I > > use > > following code: > > > > <<TV,fig=TRUE,echo=FALSE>>= > > qplot > > > (subscriber,data=TV09,geom="bar",fill=subscriber,xlab=NULL,ylab=NULL)+ > > coord_flip()+ opts(legend.position="none") > > @ > > > > <<test,fig=TRUE,echo=FALSE>>= > > plot(table(TV09$subscriber)) > > @ > > > > Although the lower plot is being shown, the one above > (that > > uses > > qplot, and the one I actually want to use) does not. > It is > > being > > inserted into the odf file as a blank image. > > > > Can someone give me some advice? > > > > Thanks, > > Kind regards, > > > > John > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the > ggplot2 mailing list. > To post to this group, send email to ggpl...@googlegroups.com > To unsubscribe from this group, send email to > ggplot2+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/ggplot2 > -~----------~----~----~----~------~----~------~--~--- > >
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.