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