Skip to content

Boxplot orders

4 messages · Phoebe Jekielek, Weidong Gu, David Winsemius +1 more

#
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 <phoebejek at gmail.com> wrote:
#
On Aug 24, 2011, at 8:36 PM, Weidong Gu wrote:

            
> ?Constants
 > month.abb
  [1] "Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct"  
"Nov" "Dec"

No pi in the sky, that!
#
Hi
order. In
problem?

Probably months are either character or factor values. If they are factor 
type you can easily change their ordering.

factor(month.factor.variable, levels= vector of properly ordered months)

Regards
Petr
http://www.R-project.org/posting-guide.html