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