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