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