powered by
In ggsurvey you specify both the plotting variables and weights in plain text with no quotes.
gghexweight2d(df, x, y, z, weights)
data frame
name of variable for x axis
name of variable for y axis
faceting categorical variable
name of weights variable
ggplot object
# NOT RUN { library(survey) data(api) gghexweight2d(apistrat, api99, api00, stype, pw) # }
Run the code above in your browser using DataLab