ggboxweight2d | R Documentation |
In ggsurvey you specify both the plotting variables and weights in plain text with no quotes.
ggboxweight2d(df, x, y, weights)
df |
data frame |
x |
numeric variable of interest |
y |
categorical variable of interest |
weights |
survey weights that sums to sample size |
ggplot object
library(survey) data(api) ggboxweight2d(apistrat, api00, stype, pw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.