plot_by_gender: Plotting age by gender

Description Usage Arguments Value See Also Examples

View source: R/plot_by_gender.R

Description

This function generates plots with gender as a factor. If there is no input, a qplot (boxplots) of the age data with both genders will be generated. If the input is a gender, it will create a histogram of the age distribution of Williams faculty of that gender. If the input is not a gender, an error message would be returned.

Usage

1

Arguments

gender

This input should be one of the genders

Value

a histogram of the age distribution of Williams faculty of the gender selected

See Also

plot_age for histogram of all ages, plot_by_dpmt for boxplots and histograms by department, color_by_gender for colored scatter plot by gender, and color_by_dpmt for colored scatter plot by department

Other plotting.functions: color_by_dpmt, color_by_gender, plot_age, plot_by_dpmt

Examples

1
2
plot_by_gender('Male')
plot_by_gender('female')

yz4/WilliamsFaculty documentation built on May 4, 2019, 8:47 p.m.