stat_boxplot(mapping = NULL, data = NULL, geom = "boxplot", position = "dodge", na.rm = FALSE, coef = 1.5, ...)
FALSE (the default), removes
missing values with a warning. If TRUE silently
removes missing values.aes or aes_string. Only
needs to be set at the layer level if you are overriding
the plot defaults.layer. This can include aesthetics whose
values you want to set, not map. See layer
for more details.A data frame with additional columns: widthwidth of boxplot yminlower whisker = smallest observation greater than or equal to lower hinge - 1.5 * IQR lowerlower hinge, 25% quantile notchlowerlower edge of notch = median - 1.58 * IQR / sqrt(n) middlemedian, 50% quantile notchupperupper edge of notch = median + 1.58 * IQR / sqrt(n) upperupper hinge, 75% quantile ymaxupper whisker = largest observation less than or equal to upper hinge + 1.5 * IQR
Calculate components of box and whisker plot.
stat_boxplot understands the following aesthetics (required aesthetics are in bold):
x
y
# See geom_boxplot for examples
geom_boxplot for examples.