gghexweight2d {ggsurvey} | R 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)
[Package ggsurvey version 1.0.0 Index]