powered by
Calculate boxplot values
compute_boxplot(x, var = NULL, coef = 1.5)
A data frame with columns:
Lower whisker = smallest observation greater than or equal to lower hinge - 1.5 * IQR
Lower hinge (25th percentile)
Median (50th percentile)
Upper hinge (75th percentile)
Upper whisker = largest observation less than or equal to upper hinge + 1.5 * IQR
A vector of values that are outside of the min and max
Dataset-like object to compute boxplot values. There are built-in methods for data frames, grouped data frames, and ggvis visualisations.
Name of variable for which to compute boxplot values. The variable must be continuous.
The maximum length of the whiskers as multiple of the inter-quartile range. Default value is 1.5.
layer_boxplots
mtcars %>% compute_boxplot(~mpg) mtcars %>% group_by(cyl) %>% compute_boxplot(~mpg)
Run the code above in your browser using DataLab