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