balloon_plot {GenderInfer} | R Documentation |
Function to create the balloon plot for gender first name
Description
Function to create the balloon plot for gender first name
Usage
balloon_plot(data_df, gender_var, cutoff)
Arguments
data_df |
data frame containing 'first name' and 'gender' columns from
|
gender_var |
gender possible values are F for female, M for male and U for unknown |
cutoff |
numerical value indicating where to cut the counting data |
Value
The output is a gg object from ggplot2 which shows the most frequent names as a balloon plot.
Examples
gender <- assign_gender(authors, "first_name")
bp <- balloon_plot(gender, "M", cutoff = 5)
[Package GenderInfer version 0.1.0 Index]