Draws a boxplot with the highest censoring threshold shown as a horizontal line. Any statistics below this line are invalid and must be estimated using methods for censored data.
cenboxplot(obs, cen, group, log = TRUE, range = 0, ...)
A numeric vector of observations.
A logical vector indicating TRUE where an observation in obs
is
censored (a less-than value) and FALSE otherwise.
A factor vector used for grouping obs
into subsets (each group
will be a separate box).
A logical indicating if the y-axis should be in log units.
Default is TRUE
.
A numeric value determining how far the plot whiskers extend
from the box. If positive, the whiskers extend to the most extreme data
point which is no more than range
times the interquartile range from
the box. The default is 0, which extends whiskers to the min and max.
Additional arguments passed to graphics::boxplot()
.
The output of the default graphics::boxplot()
method.
Helsel, Dennis R. (2005). Nondetects and Data Analysis; Statistics for censored environmental data. John Wiley and Sons, Hoboken, NJ.