Description Usage Arguments Details Value Examples
Calculates boxplot statistics
1 2 |
x |
Vector of values from which to calculate statistics |
whiskers |
A two-element vector of the percentiles for the lower and upper whiskers (c(0.025, 0.975)) |
weighted |
TRUE or FALSE (default) for weighted quantiles and mean |
weight.opts |
A list of options to be passed to wtd.quantile |
na.rm |
Should the quantile and mean functions exclude NA values in x? Default is TRUE, else FALSE |
If weighted is TRUE, the wtd.quantile and wtd.mean functions from Hmisc are called, and a weights vector equal in length to x is needed, passed as the minimum necessary parameter for calculating weighted quantiles. A named list should be provided where the name for each element matches the argument name for Hmisc::wtd.quantile and Hmisd::wtd.mean. Other possible arguments include type and normwt.
A vector containing the 2.5, 25, 50, 75, 97.5th percentile values and the mean
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.