[R] Odp: Boxplot orders

Petr PIKAL petr.pikal at precheza.cz
Thu Aug 25 11:57:52 CEST 2011


Hi

> 
> 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?

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

> 
> Thanks so much in advance!!
> 
> Phoebe
> 
>    [[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.



More information about the R-help mailing list