Learn R Programming

ggsurvey (version 1.0.0)

ggboxweight3d: Weighted Boxplot with a categorical x axis and a faceting variable

Description

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

Usage

ggboxweight3d(df, x, y, z, weights)

Arguments

df

data frame

x

first categorical variable of interest

y

numeric variable of interest

z

second variable of interest for faceting

weights

survey weights that sums to sample size

Value

ggplot object

Examples

Run this code
# NOT RUN {
library(survey)
data(api)
ggboxweight3d(apistrat, api00, stype,awards, pw)
# }

Run the code above in your browser using DataLab