Description Usage Arguments Value
Measures the difference between the total weight of the various levels of a variable in the original sample, and the actual count of each level in the synthetic population.
1 2 | plot_variable(sample, generated, var.name, colorRef = "darkgray",
colorSynthetic = "blue", as.factor = TRUE)
|
sample |
a sample as produced by |
generated |
a population as produced by |
var.name |
the name of the variable to measure and plot |
colorRef |
the color to be used to plot values passed as parameters (defaults to "darkgray") |
colorSynthetic |
the color to be used to plot values measured in the synthetic population (defaults to "blue") |
as.factor |
if TRUE (default), plots the variable as a factor instead of numerical |
the plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.