[R] Order of boxes in boxplot()

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Apr 7 13:41:48 CEST 2005


It is the order of the levels of the grouping factor.  If `grp' is not
a factor, it will be made into one (with levels in alphabetical order).

On Thu, 7 Apr 2005, michael watson (IAH-C) wrote:

> Sorry for such an inane question - how do I control the order in which
> the boxes are plotted using boxplot() when I pass it a formula and a
> data.frame?  It seems that the groups are plotted in alphabetical
> order... I want to change this....

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list