Learn R Programming

SynthesizerPlus (version 0.4.0)

autoplot.sp_comparison: Plot a comparison of real and synthetic data

Description

Plot a comparison of real and synthetic data

Usage

# S3 method for sp_comparison
autoplot(
  object,
  type = c("marginals", "association", "qq", "pairs", "dcr"),
  ...
)

# S3 method for sp_comparison plot(x, type = c("marginals", "association", "qq", "pairs", "dcr"), ...)

Value

autoplot() returns a ggplot (or sp_plot_list); plot()

prints it and returns it invisibly.

Arguments

object, x

An sp_comparison from compare_synthetic().

type

What to plot: "marginals", "association", "qq", "pairs" or "dcr".

...

Passed to the underlying plot function.

Examples

Run this code
syn <- synthesize(iris, seed = 1)
cmp <- compare_synthetic(iris, syn, seed = 1)
plot(cmp, type = "qq")

Run the code above in your browser using DataLab