R4DS-2e Ch. 01

facet_wrap()

{ggplot2}

create subplots from one variable

aes()

{ggplot2}

create aesthetic mappings between data and plot

ggsave()

{ggplot2}

save a ggplot

fct_infreq()

{forcats}

reorder factor levels in the order of most to least frequent

library()

{base}

load R packages

ggplot()

{ggplot2}

create a plotting area

geom_histogram()

{ggplot2}

create histogram of counts as bars

geom_smooth()

{ggplot2}

create smoothed lines to plot

labs()

{ggplot2}

modify axis, legend, and plot labels

geom_boxplot()

{ggplot2}

add layer of boxplots to plot

geom_bar()

{ggplot2}

create bar chart based on counts in data

geom_point()

{ggplot2}

add layer of points to plot

The end!