<summarised_result> objectCreate a box plot visualisation from a <summarised_result> object
boxPlot(
result,
x,
lower = "q25",
middle = "median",
upper = "q75",
ymin = "min",
ymax = "max",
facet = NULL,
colour = NULL,
style = NULL,
type = NULL,
label = character()
)A ggplot2 object.
A <summarised_result> object.
Column or estimate name that is used as x variable.
Estimate name for the lower quantile of the box.
Estimate name for the middle line of the box.
Estimate name for the upper quantile of the box.
Lower limit of error bars, if provided is plot using
geom_errorbar.
Upper limit of error bars, if provided is plot using
geom_errorbar.
Variables to facet by, a formula can be provided to specify which variables should be used as rows and which ones as columns.
Columns to use to determine the colours.
Visual theme to apply. Character, or NULL.
If a character, this may be either the name of a built-in style
(see plotStyle()), or a path to a .yml file that
defines a custom style. If NULL, the function will use the
explicit default style, unless a global style option is
set (see setGlobalPlotOptions()), or a _brand.yml file is present
(in that order).
Refer to the package vignette on styles to learn more.
Character string indicating the output plot format.
See plotType() for the list of supported plot types. If type = NULL,
the function will use the global setting defined via setGlobalPlotOptions()
(if available); otherwise, a standard ggplot2 plot is produced by default.
Character vector with the columns to display interactively in
plotly.
dplyr::tibble(year = "2000", q25 = 25, median = 50, q75 = 75, min = 0, max = 100) |>
boxPlot(x = "year")
Run the code above in your browser using DataLab