Adds error bars showing confidence intervals, standard errors,
or other variability measures. Data should include columns for
ymin/ymax (vertical) or xmin/xmax (horizontal).
Usage
mark_errorbar(
plot,
mapping = NULL,
data = NULL,
position = NULL,
...,
width = 0.5,
orientation = c("vertical", "horizontal"),
rasterize = FALSE,
rasterize_dpi = 300,
rasterize_dev = "cairo"
)Arguments
- plot
A plotit object
- mapping
Optional new aesthetics (must include
ymin/ymaxorxmin/xmax)- data
Optional data for this layer
- position
Position adjustment.
- ...
Other arguments passed to the underlying geom
- width
Width of the error bar caps (default 0.5).
- orientation
"vertical"(default) or"horizontal".- rasterize
If
TRUE, rasterize viaggrastr::rasterise().- rasterize_dpi
DPI for rasterization (default 300).
- rasterize_dev
Graphics device for rasterization (default
"cairo").
References
Vega-Lite: Errorbar (composite mark)
