Diagnostic companion to normalize_x(). Plots side-by-side histograms
of the raw and normalized distributions.
Usage
plot_normalize_x(
x,
range = NULL,
normalize = TRUE,
breaks = 40,
col_raw = "steelblue",
col_norm = "firebrick",
border = "white",
main_raw = "Raw",
main_norm = NULL,
...
)Arguments
- x
A numeric vector (raw input, or already-normalized if
normalize = FALSE).- range
Character range code passed to
normalize_x()whennormalize = TRUE. Required unlessnormalize = FALSE.- normalize
Logical. If
TRUE(default), normalizexinside the function. IfFALSE, treatxas already normalized.- breaks
Number of histogram breaks. Default
40.- col_raw
Fill color for the raw histogram. Default
"steelblue".- col_norm
Fill color for the normalized histogram. Default
"firebrick".- border
Bar border color. Default
"white".- main_raw
Title for the raw panel. Default
"Raw".- main_norm
Optional title for the normalized panel. If
NULL, uses thetransform_labelattribute when available.- ...
Additional arguments passed to
normalize_x()whennormalize = TRUE.