plot_density_metric {APCtools} | R Documentation |
Internal helper to plot a metric density
Description
Internal helper function to plot one metric density, to be called from within
plot_density
.
Usage
plot_density_metric(
dat,
y_var,
plot_type = "density",
dat_highlightDiagonals = NULL,
y_var_cat_breaks = NULL,
y_var_cat_labels = NULL,
weights_var = NULL,
log_scale = FALSE,
xlab = NULL,
ylab = NULL,
legend_title = NULL,
...
)
Arguments
dat |
Dataset with columns |
y_var |
Character name of the main variable to be plotted. |
plot_type |
One of |
dat_highlightDiagonals |
Optional dataset created by
|
y_var_cat_breaks |
Optional numeric vector of breaks to categorize
|
y_var_cat_labels |
Optional character vector for the names of the
categories that were defined based on |
weights_var |
Optional character name of a weights variable used to project the results in the sample to some population. |
log_scale |
Indicator if the main variable should be log10 transformed.
Only used if the |
xlab , ylab , legend_title |
Optional plot annotations. |
... |
Additional arguments passed to |