ggboxweight3d_svy | R Documentation |
In ggsurvey you specify both the plotting variables and weights in plain text with no quotes.
ggboxweight3d_svy(surveyobj, x, y, z)
surveyobj |
svy.design |
x |
variable to boxplot |
y |
first categorical variable |
z |
second categorical variable (for faceting) |
ggplot object
library(survey) data(api) dstrat<-svydesign(id=~1,strata=~stype, weights=~pw, data=apistrat, fpc=~fpc) ggboxweight3d_svy(dstrat, api00, stype, awards)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.