[R] GGPlot 2 and odfweave

Felipe Carrillo mazatlanmexico at yahoo.com
Sat Jul 25 01:09:56 CEST 2009



 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.lipkins at googlemail.com>
> wrote:
> 
> > From: John Lipkins <john.lipkins at googlemail.com>
> > Subject: GGPlot 2 and odfweave
> > To: "ggplot2" <ggplot2 at 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 ggplot2 at googlegroups.com
> To unsubscribe from this group, send email to
> ggplot2+unsubscribe at googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/ggplot2
> -~----------~----~----~----~------~----~------~--~---
> 
> 







More information about the R-help mailing list