Weighted box plot statistics
Description
Compute the statistics necessary for producing boxandwhisker plots of continuous or semicontinuous variables, taking into account sample weights.
Usage
1 2 
Arguments
x 
a numeric vector. 
weights 
an optional numeric vector containing sample weights. 
coef 
a numeric value that determines the extension of the whiskers. 
zeros 
a logical indicating whether the variable specified by

do.out 
a logical indicating whether data points that lie beyond the extremes of the whiskers should be returned. 
Details
The function quantileWt
is used for the computation of
(weighted) quantiles. The median is computed together with the first and
the third quartile, which form the box. If range
is positive, the
whiskers extend to the most extreme data points that have a distance to the
box of no more than coef
times the interquartile range. For
coef = 0
, the whiskers mark the minimum and the maximum of the
sample, whereas a negative value causes an error.
Value
A list of class "spBwplotStats"
with the following
components:
stats 
A vector of length 5 containing the (weighted) statistics for the construction of a box plot. 
n 
if 
nzero 
if 
out 
if 
Author(s)
Stefan Kraft and Andreas Alfons
See Also
spBwplot
, for producing (weighted) box plots of
continuous or semicontinuous variables.
quantileWt
for the computation of (weighted) sample quantiles.
boxplot.stats
for the unweighted statistics for box
plots (not considering semicontinuous variables).
Examples
1 2 3 4 5 
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.