R4DS-2e Ch. 09

ggplot()

{ggplot2}

create a plotting area

aes()

{ggplot2}

create aesthetic mappings between data and plot

count()

{dplyr}

count unique values of variables

geom_boxplot()

{ggplot2}

add layer of boxplots to plot

coord_fixed()

{ggplot2}

force aspect ratio between data units on axes

after_stat()

{ggplot2}

evaluate aesthetic mapping after statistical transformation

geom_abline()

{ggplot2}

add vertical, horizontal, or diagonal reference lines

stat_summary()

{ggplot2}

summarize y values for each x value

median()

{stats}

compute sample median

theme()

{ggplot2}

customize non-data components of plot

geom_point()

{ggplot2}

add layer of points to plot

geom_histogram()

{ggplot2}

create histogram of counts as bars

cut()

{base}

divide range of vector into intervals

filter()

{dplyr}

keep rows based on values of columns

max()

{base}

compute maxima of input values

coord_quickmap()

{ggplot2}

set aspect ratio correctly for maps

geom_bar()

{ggplot2}

create bar chart based on counts in data

geom_polygon()

{ggplot2}

add layer of polygons to plot

facet_grid()

{ggplot2}

create grid of subplots from multiple variables

facet_wrap()

{ggplot2}

create subplots from one variable

coord_polar()

{ggplot2}

use polar coordinates

coord_flip()

{ggplot2}

switch x and y axes

geom_smooth()

{ggplot2}

create smoothed lines to plot

n()

{dplyr}

return current group size

class()

{base}

return object class

library()

{base}

load R packages

min()

{base}

compute minima of input values

The end!