powered by
Output a density plot for a single metric variable
plot_metrics_one( data, col, ci = FALSE, box = FALSE, limits = NULL, title = TRUE, labels = TRUE, clean = TRUE, ... )
A ggplot object.
A tibble.
The column holding metric values.
Whether to plot the confidence interval.
Whether to add a boxplot.
The scale limits. Set NULL to extract limits from the label.
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(data, sd_age)
Run the code above in your browser using DataLab