Re: [R] Grouped Barplot

2009-11-25 Thread Gary
I'm able to add legend. ~Gary On Wed, Nov 25, 2009 at 3:15 PM, Gary wrote: > Thanks David. I reduced the data set and its copied below (also attached to > this email as text file). Now N=50, Only 2 years, Only 2 Cities. I tried: > > foo<-read.table("SampleData.txt", header=TRUE) > boxplot(foo$ad

Re: [R] Grouped Barplot

2009-11-25 Thread Gary
Thanks David. I reduced the data set and its copied below (also attached to this email as text file). Now N=50, Only 2 years, Only 2 Cities. I tried: foo<-read.table("SampleData.txt", header=TRUE) boxplot(foo$admit ~ foo$city + foo$year, col=2:3) I need some help with: 1) Defining labels for x-ax

Re: [R] Grouped Barplot

2009-11-25 Thread David Winsemius
On Nov 25, 2009, at 1:48 PM, Gary wrote: Hi R Users, I tried plotting a similar boxplot as it is on the FOLLOWING LINK: http://www.imachordata.com/wp-content/uploads/2009/09/boxplot.png Looks like a product of a function from ggplot2. In fact trimming that URL brings you to a page with th

Re: [R] Grouped Barplot

2009-11-25 Thread S Devriese
On 11/25/2009 07:48 PM, Gary wrote: > Hi R Users, > > I tried plotting a similar boxplot as it is on the FOLLOWING LINK: > > http://www.imachordata.com/wp-content/uploads/2009/09/boxplot.png > > Sample data is attached -- there are 9 years and 5 cities. In my case I'm > looking to plot "Year" on x-