Description Usage Arguments Value Author(s) See Also Examples
Order boxplot stats following a given ordering.
1 | orderBoxplot(stats, idx)
|
stats |
List with information produced by a box-and-whisker plot. |
idx |
Order of group levels. |
The ordered stats.
Jacolien van Rij
Other Utility functions:
findAbsMin(),
find_n_neighbors(),
firstLetterCap(),
getArrowPos(),
getDec(),
getRange(),
getRatioCoords(),
get_palette(),
group_sort(),
inch2coords(),
isColor(),
list2str(),
move_n_point(),
se(),
sortGroups()
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.