gghexweight: Weighted Hex Plot

View source: R/hexplot.R

gghexweightR Documentation

Weighted Hex Plot

Description

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

Usage

gghexweight(df, x, y, weights)

Arguments

df

data frame

x

name of variable for x axis

y

name of variable for y axis

weights

name of weights variable

Value

ggplot object

Examples

library(survey)
data(api)
gghexweight(apistrat, api99, api00, pw)

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