ggboxweight2d_svy: Weighted Boxplot of a survey object with a categorical...

View source: R/boxplots.R

ggboxweight2d_svyR Documentation

Weighted Boxplot of a survey object with a categorical variable

Description

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

Usage

ggboxweight2d_svy(surveyobj, x, y)

Arguments

surveyobj

svy.design object

x

variable to boxplot

y

categorical variable

Value

ggplot object

Examples

library(survey)
data(api)
dstrat<-svydesign(id=~1,strata=~stype, weights=~pw, data=apistrat, fpc=~fpc)
ggboxweight2d_svy(dstrat, api00, stype)

balexanderstats/ggsurvey documentation built on May 12, 2022, 2:22 p.m.