qboxplot.stats {qboxplot} | R Documentation |
Helper Function For qboxplot
Description
Produce quantile-based box-and-whisker plot(s) of the given (grouped) values.
Usage
qboxplot.stats(x, probs, qtype, range, output="all")
Arguments
x |
a numeric vector of data values from which to calculate the requested statistics. |
probs |
numeric vector of values in [0,1] specifying the percentiles of the upper hinge, the midpoint (usually the median) and the lower hinge. |
qtype |
an integer between 1 and 9 indicating which one of the nine quantile algorithms to use (see |
output |
limit the output to |
range |
this determines how far the plot whiskers extend out from the box. If |
Value
List with the following components:
quantiles |
a matrix, each column contains the extreme of the lower whisker, the lower hinge, the median, the upper hinge and the extreme of the upper whisker for one group/plot. |
outliers |
a vector with the number of observations in each group. |
n |
the values of any data points which lie beyond the extremes of the whiskers. |
Examples
x = runif(100)
stats = qboxplot.stats(x, probs=c(0.4,0.5,0.6), qtype=7, range=1.5)
stats