View source: R/plot_functions.R
| strip_error | R Documentation |
strip_error constructs strip plots with error bars showing 95
confidence intervals around mean values.
strip_error(data, x, y, size = 0.5)
data |
A data frame. |
x |
A categorical variable (the exposure). |
y |
A numerical variable (the outcome or response variable). |
size |
Size of the marker. |
data(energy, package = "ISwR")
require(sjlabelled, quietly = TRUE)
energy <- energy |>
var_labels(
expend = "Energy expenditure (MJ/day)",
stature = "Stature"
)
energy |>
strip_error(x = stature, y = expend)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.