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, ...)

Arguments

obs

A numeric vector of observations.

cen

A logical vector indicating TRUE where an observation in obs is censored (a less-than value) and FALSE otherwise.

group

A factor vector used for grouping obs into subsets (each group will be a separate box).

log

A logical indicating if the y-axis should be in log units. Default is TRUE.

range

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().

Value

The output of the default graphics::boxplot() method.

References

Helsel, Dennis R. (2005). Nondetects and Data Analysis; Statistics for censored environmental data. John Wiley and Sons, Hoboken, NJ.