gghexweight2d_svy: Weighted Hex Plot of svy.design with One Facet Variable

View source: R/hexplot.R

gghexweight2d_svyR Documentation

Weighted Hex Plot of svy.design with One Facet Variable

Description

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

Usage

gghexweight2d_svy(surveyobj, x, y, z)

Arguments

surveyobj

svy.design

x

variable for x axis

y

variable for y axis

z

faceting variable

Value

ggplot object

Examples

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

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