| plot_qq | R Documentation |
For each numeric variable, quantiles of the synthetic data are plotted against those of the real data; points on the diagonal indicate matching distributions.
plot_qq(
real,
synthetic,
vars = NULL,
max_vars = 12L,
probs = seq(0.01, 0.99, by = 0.01)
)
real |
A data frame (or vector/matrix) with the real data. |
synthetic |
Optional synthetic data with the same columns. |
vars |
Variables to plot (default: all, up to |
max_vars |
Maximum number of variables of each kind shown by default. |
probs |
Probabilities at which quantiles are compared. |
A ggplot object.
syn <- synthesize(mtcars, seed = 1)
plot_qq(mtcars, syn, vars = c("mpg", "hp", "wt"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.