gghexweight3d_svy {ggsurvey} | R Documentation |
Weighted Hex Plot of svy.design with Two Faceting Variables
Description
In ggsurvey you specify both the plotting variables and weights in plain text with no quotes.
Usage
gghexweight3d_svy(surveyobj, x, y, a, b)
Arguments
surveyobj |
svy.design |
x |
variable for x axis |
y |
variable for y axis |
a |
horizontal facetting variable |
b |
vertical facetting variable |
Value
ggplot object
Examples
library(survey)
data(api)
dstrat<-svydesign(id=~1,strata=~stype, weights=~pw, data=apistrat, fpc=~fpc)
gghexweight3d_svy(dstrat, api99, api00, stype, awards)
[Package ggsurvey version 1.0.0 Index]