balloon_plot: Function to create the balloon plot for gender first name

Description Usage Arguments Value Examples

View source: R/balloon_plot.R

Description

Function to create the balloon plot for gender first name

Usage

1
balloon_plot(data_df, gender_var, cutoff)

Arguments

data_df,

data frame containing 'first name' and 'gender' columns from assign_gender

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

1
2
gender <- assign_gender(authors, "first_name")
bp <- balloon_plot(gender, "M", cutoff = 5)

GenderInfer documentation built on Sept. 29, 2021, 9:07 a.m.