powered by
Plot a comparison of real and synthetic data
# 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"), ...)
# S3 method for sp_comparison plot(x, type = c("marginals", "association", "qq", "pairs", "dcr"), ...)
autoplot() returns a ggplot (or sp_plot_list); plot()
autoplot()
ggplot
sp_plot_list
plot()
prints it and returns it invisibly.
An sp_comparison from compare_synthetic().
sp_comparison
compare_synthetic()
What to plot: "marginals", "association", "qq", "pairs" or "dcr".
"marginals"
"association"
"qq"
"pairs"
"dcr"
Passed to the underlying plot function.
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