gghexweight2d: Weighted Hex Plot with One Facet Variable

View source: R/hexplot.R

gghexweight2dR Documentation

Weighted Hex Plot with One Facet Variable

Description

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

Usage

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

Arguments

df

data frame

x

name of variable for x axis

y

name of variable for y axis

z

faceting categorical variable

weights

name of weights variable

Value

ggplot object

Examples

library(survey)
data(api)
gghexweight2d(apistrat, api99, api00, stype, pw)

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