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