Re: [R] Multiple stacked barplots on the same graph?

From: hadley wickham <h.wickham_at_gmail.com>
Date: Tue, 4 Dec 2007 12:15:51 -0600

On Dec 4, 2007 10:34 AM, Stéphane CRUVEILLER <scruveil_at_genoscope.cns.fr> wrote:
> Hi,
>
> I tried this method but it seems that there is something wrong with my
> data frame:
>
>
> when I type in:
>
> > qplot(x=as.factor(Categorie),y=Total,data=mydata)
>
> It displays a graph with 2 points in each category...
> but if I add the parameter geom="histogram"
>
> > qplot(x=as.factor(Categorie),y=Total,data=mydata,geom="histogram")
>
>
> Error in storage.mode(test) <- "logical" :
> object "y" not found
>
> any hint about this...

Could you copy and paste the output of dput(mydata) ?

(And I'd probably write the plot call as: qplot(Categorie, Total, data=mydata, geom="bar"), since it is a bar plot, not a histogram)

-- 
http://had.co.nz/

______________________________________________
R-help_at_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.
Received on Tue 04 Dec 2007 - 18:26:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 05 Dec 2007 - 08:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.