gghexweight_svy: Weighted Hex Plot of Survey Design Object

View source: R/hexplot.R

gghexweight_svyR Documentation

Weighted Hex Plot of Survey Design Object

Description

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

Usage

gghexweight_svy(surveyobj, x, y)

Arguments

surveyobj

svy.design

x

name of variable for x axis

y

name of variable for y axis

Value

ggplot object

Examples

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

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