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