powered by
In ggsurvey you specify both the plotting variables and weights in plain text with no quotes.
ggboxweight3d(df, x, y, z, weights)
data frame
first categorical variable of interest
numeric variable of interest
second variable of interest for faceting
survey weights that sums to sample size
ggplot object
# NOT RUN { library(survey) data(api) ggboxweight3d(apistrat, api00, stype,awards, pw) # }
Run the code above in your browser using DataLab