plot_qq_plot | R Documentation |
Create a figure that plots the expected, theoretical normal quantiles (z-scores) against the observed normal quantiles (z-scores) of the data.
plot_qq_plot(
x,
transformer,
show_original = TRUE,
show_identity = TRUE,
use_alpha = TRUE,
ggtheme = NULL
)
x |
A vector with numeric values that should be transformed to normality. |
transformer |
A transformer object created using
|
show_original |
Show quantiles for original, untransformed, data in addition to transformed data. |
show_identity |
Show identity line that indicates equivalence between expected and observed quantiles. |
use_alpha |
Use transparency for points in case the data contains many instances. |
ggtheme |
|
A ggplot2
plot object for a Q-Q plot.
x <- exp(stats::rnorm(1000))
transformer <- find_transformation_parameters(
x = x,
method = "box_cox")
if (rlang::is_installed("ggplot2")) {
plot_qq_plot(
x = x,
transformer = transformer
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.