Skip to content
Prev 61486 / 398500 Next

Sorting problem

From:   Paul JH Drake <p.drake at beatson.gla.ac.uk>
Actually they are shown in order of the levels of the factor.
e.g. to show them in reverse order:

attach(InsectSprays)
spray <- factor( as.character(spray), level = rev(levels(spray)) )
boxplot(count ~ spray)