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