Summarise boxplot stats.
summarise_boxplot_stats(
data,
var,
names_vctr = c("min", "lower", "middle", "upper", "max"),
...
)
A data frame.
A data frame. Required input. Group the dataset as appropriate prior.
Unquoted variable from which to calculate boxplot stats. Required input.
A vector of names for the boxplot stats.
Passed to boxplot.stats
library(simplevis)
library(dplyr)
library(palmerpenguins)
penguins %>%
group_by(species) %>%
summarise_boxplot_stats(body_mass_g)
penguins %>%
group_by(sex, species) %>%
summarise_boxplot_stats(body_mass_g, names_vctr = LETTERS[1:5])
Run the code above in your browser using DataLab