Re: [R] Boxplot orders

2011-08-24 Thread David Winsemius
On Aug 24, 2011, at 8:36 PM, Weidong Gu wrote: At default, factors (months) are alphabetically leveled. You can explicitly re-level months months<-factor(months,levels=c('Jan','Feb','Mar',...,'Dec')) > ?Constants > month.abb [1] "Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct"

Re: [R] Boxplot orders

2011-08-24 Thread Weidong Gu
At default, factors (months) are alphabetically leveled. You can explicitly re-level months months<-factor(months,levels=c('Jan','Feb','Mar',...,'Dec')) Then it should work. Weidong Gu On Wed, Aug 24, 2011 at 10:45 AM, Phoebe Jekielek wrote: > Hi there, > > I have length data of an organism o

[R] Boxplot orders

2011-08-24 Thread Phoebe Jekielek
Hi there, I have length data of an organism over the year and I want to make a boxplot. I get the boxplot just fine but the months are all out of order. In the data set they are in order from Jan-Dec...how can I fix this problem? Thanks so much in advance!! Phoebe [[alternative HTML ver