Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

orderBoxplot

Order boxplot stats following a given ordering.


Description

Order boxplot stats following a given ordering.

Usage

orderBoxplot(stats, idx)

Arguments

stats

List with information produced by a box-and-whisker plot.

idx

Order of group levels.

Value

The ordered stats.

Author(s)

Jacolien van Rij

See Also

Examples

head(ToothGrowth)
# sort on basis of mean length:
bp <- boxplot(len ~ dose:supp, data = ToothGrowth, plot=FALSE)
idx <- sortGroups(len ~ dose:supp, data = ToothGrowth)
bp2 <- orderBoxplot(bp, idx)
# compare:
bp$names
bp2$names

plotfunctions

Various Functions to Facilitate Visualization of Data and Analysis

v1.4
GPL (>= 2)
Authors
Jacolien van Rij [aut, cre]
Initial release
2020-04-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.