Description Usage Arguments Value Examples
Function to create the balloon plot for gender first name
1 | balloon_plot(data_df, gender_var, cutoff)
|
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 |
The output is a gg object from ggplot2 which shows the most frequent names as a balloon plot.
1 2 | gender <- assign_gender(authors, "first_name")
bp <- balloon_plot(gender, "M", cutoff = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.