ggboxweight {ggsurvey}R Documentation

Weighted Box Plot of One Variable

Description

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

Usage

ggboxweight(df, x, weights)

Arguments

df

data frame

x

first variable of interest

weights

survey weights that sums to sample size

Value

ggplot object

Examples

library(survey)
data(api)
ggboxweight(apistrat, api00, pw)
data(election)
ggboxweight(election_pps, Bush, p)

[Package ggsurvey version 1.0.0 Index]