Learn R Programming

GenderInfer (version 0.1.0)

balloon_plot: 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 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

Run this code
# NOT RUN {
gender <- assign_gender(authors, "first_name")
bp <- balloon_plot(gender, "M", cutoff = 5)
# }

Run the code above in your browser using DataLab