powered by
Output averages for multiple variables
plot_metrics_one_grouped( data, col, cross, ci = FALSE, box = FALSE, limits = NULL, title = TRUE, labels = TRUE, clean = TRUE, ... )
A ggplot object.
A tibble.
The column holding metric values.
The column holding groups to compare.
Whether to add error bars with 95% confidence intervals.
Whether to add boxplots.
The scale limits. Set NULL to extract limits from the labels.
If TRUE (default) shows a plot title derived from the column labels. Disable the title with FALSE or provide a custom title as character value.
If TRUE (default) extracts labels from the attributes, see codebook.
Prepare data by data_clean.
Placeholder to allow calling the method with unused parameters from plot_metrics.
library(volker) data <- volker::chatgpt plot_metrics_one_grouped(data, sd_age, sd_gender)
Run the code above in your browser using DataLab