Description Usage Arguments Value Examples
Create a grid of 2x2 survey-weighted mosaic plots
1 2 | svy_mosaic_splom(data, factors = c(), weight = "WEIGHT", svydesignObj,
mar_par = rep(0.5, 4))
|
data |
a data frame |
factors |
a vector of character strings corresponding to factor-type variables from the data frame |
weight |
a character string indicating the name of the weight variable in the data frame. |
svydesignObj |
a survey::svydesign object, used to create bivariate ssurvey::svyglm models and color the corresponding mosaics red/blue if there is a statistically significant correlation between the two variables |
mar_par |
a numeric vector of length 4 controlling the margins of the plots |
A grid of 2x2 mosaics, one for each pair of the input factors
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.