gghistweight3d_svy: Histogram of svy.design object with two facets

View source: R/histograms.R

gghistweight3d_svyR Documentation

Histogram of svy.design object with two facets

Description

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

Usage

gghistweight3d_svy(surveyobj, x, y, z, binwidth = NULL)

Arguments

surveyobj

svy.design object

x

variable to histogram

y

horizontal facet

z

vertical facet

binwidth

binwidth to pass to geom_hist

Value

ggplot object

Examples

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

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