Re: [R] Barplot w/ single stacked bar

2008-01-24 Thread hadley wickham
> I can reach my goal in ggplot2, although the relative heights of the > bar's pieces don't seem quite right (it does generate a warning): > > library(ggplot2) > x<-factor(1) > y<-factor( c("Male","Male","Female") ) > mydata <- data.frame(x,y) > rm(x,y) > mydata Ooops! There was a bug in stat_bin

Re: [R] Barplot w/ single stacked bar

2008-01-24 Thread Muenchen, Robert A (Bob)
al Message- > From: Marc Schwartz [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 24, 2008 11:32 AM > To: Muenchen, Robert A (Bob) > Cc: [EMAIL PROTECTED] > Subject: Re: [R] Barplot w/ single stacked bar > > Muenchen, Robert A (Bob) wrote: > > Hi All, > > >

Re: [R] Barplot w/ single stacked bar

2008-01-24 Thread Marc Schwartz
Muenchen, Robert A (Bob) wrote: > Hi All, > > I can get the barplot function to do many types of plots, stacked or > otherwise. However, I cannot get it to do a *single* stacked bar. I've > searched several books & listserv archives to no avail. I suspect I'm > missing the obvious from the help fi

[R] Barplot w/ single stacked bar

2008-01-24 Thread Muenchen, Robert A (Bob)
Hi All, I can get the barplot function to do many types of plots, stacked or otherwise. However, I cannot get it to do a *single* stacked bar. I've searched several books & listserv archives to no avail. I suspect I'm missing the obvious from the help file! I can reach my goal in ggplot2, althoug