ggboxweight2d: Weighted Boxplot with a categorical variable

View source: R/boxplots.R

ggboxweight2dR Documentation

Weighted Boxplot with a categorical variable

Description

In ggsurvey you specify both the plotting variables and weights in plain text with no quotes.

Usage

ggboxweight2d(df, x, y, weights)

Arguments

df

data frame

x

numeric variable of interest

y

categorical variable of interest

weights

survey weights that sums to sample size

Value

ggplot object

Examples

library(survey)
data(api)
ggboxweight2d(apistrat, api00, stype, pw)

ggsurvey documentation built on May 4, 2022, 9:06 a.m.