plot_qq: Quantile-quantile plots of synthetic against real data

plot_qqR Documentation

Quantile-quantile plots of synthetic against real data

Description

For each numeric variable, quantiles of the synthetic data are plotted against those of the real data; points on the diagonal indicate matching distributions.

Usage

plot_qq(
  real,
  synthetic,
  vars = NULL,
  max_vars = 12L,
  probs = seq(0.01, 0.99, by = 0.01)
)

Arguments

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 per kind).

max_vars

Maximum number of variables of each kind shown by default.

probs

Probabilities at which quantiles are compared.

Value

A ggplot object.

Examples

syn <- synthesize(mtcars, seed = 1)
plot_qq(mtcars, syn, vars = c("mpg", "hp", "wt"))

SynthesizerPlus documentation built on Oct. 16, 2026, 5:10 p.m.