orderBoxplot: Order boxplot stats following a given ordering.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plot.R

Description

Order boxplot stats following a given ordering.

Usage

1

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

Other Utility functions: findAbsMin(), find_n_neighbors(), firstLetterCap(), getArrowPos(), getDec(), getRange(), getRatioCoords(), get_palette(), group_sort(), inch2coords(), isColor(), list2str(), move_n_point(), se(), sortGroups()

Examples

1
2
3
4
5
6
7
8
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 documentation built on April 28, 2020, 5:10 p.m.