| plot_association | R Documentation |
Heatmaps of the mixed-type association_matrix() of the real data, the
synthetic data and their difference (synthetic minus real), on a common
diverging scale.
plot_association(real, synthetic = NULL, vars = NULL, show_values = NULL)
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 |
show_values |
Print the values in the cells? (Default: when there are at most 8 variables.) |
A ggplot object.
syn <- synthesize(mtcars, seed = 1)
plot_association(mtcars, syn, vars = c("mpg", "cyl", "disp", "hp", "wt"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.