gghistweight_svy {ggsurvey} | R Documentation |
Histogram of svgdesign object
Description
In ggsurvey you specify both the plotting variables and weights in plain text with no quotes.
Usage
gghistweight_svy(surveyobj, x, binwidth = NULL)
Arguments
surveyobj |
svy.design object |
x |
variable to histogram |
binwidth |
binwidth to pass to geom_hist |
Value
ggplot object
Examples
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)
[Package ggsurvey version 1.0.0 Index]