powered by
In ggsurvey you specify both the plotting variables and weights in plain text with no quotes.
ggboxweight3d_svy(surveyobj, x, y, z)
svy.design
variable to boxplot
first categorical variable
second categorical variable (for faceting)
ggplot object
# NOT RUN { library(survey) data(api) dstrat<-svydesign(id=~1,strata=~stype, weights=~pw, data=apistrat, fpc=~fpc) ggboxweight3d_svy(dstrat, api00, stype, awards) # }
Run the code above in your browser using DataLab