Description Usage Arguments Note Author(s) See Also Examples
This funcntion uses boxplot
to produce a boxplot which is then
annotated with the number of observations in each group.
1 |
... |
parameters passed to |
top |
logical indicating whether the number of observations
should be added to the top or the bottom of the plotting
region. Defaults to |
shrink |
value to shrink character size (cex) when annotating. |
textcolor |
text color. |
This function replaces boxplot.n
, which has been deprecated
avoid potential problems with S3 method dispatching.
Gregory R. Warnes greg@warnes.net
1 2 3 4 5 6 7 8 9 10 | data(state)
# n's at bottom
boxplot2( state.area ~ state.region)
# n's at top
boxplot2( state.area ~ state.region, top=TRUE)
# small red text
boxplot2( state.area ~ state.region, shrink=0.8, textcolor="red")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.