R4DS-2e Ch. 10

library()

{base}

load R packages

after_stat()

{ggplot2}

evaluate aesthetic mapping after statistical transformation

n()

{dplyr}

return current group size

fct_reorder()

{forcats}

reorder factor levels by sorting along another variable

is.na()

{base}

determine whether elements of vector are missing

cut()

{base}

divide range of vector into intervals

select()

{dplyr}

keep specified columns

geom_hex()

{ggplot2}

create heatmap of bin counts using hexagons

filter()

{dplyr}

keep rows based on values of columns

arrange()

{dplyr}

change order of rows based on values of columns

exp()

{base}

compute exponential function

geom_freqpoly()

{ggplot2}

create frequency polygon

log()

{base}

compute natural logarithm

ggplot()

{ggplot2}

create a plotting area

geom_tile()

{ggplot2}

create tile plot using center of rectangle and size

c()

{base}

create vector of numbers, characters, etc.

geom_count()

{ggplot2}

add layer of points sized by count of overlapping points to plot

augment()

{generics}

augment data with information from an object

class()

{base}

return object class

geom_histogram()

{ggplot2}

create histogram of counts as bars

geom_point()

{ggplot2}

add layer of points to plot

mutate()

{dplyr}

create or modify data columns

count()

{dplyr}

count unique values of variables

if_else()

{dplyr}

vectorized if statement that checks conditionals and returns different outputs based on answer

median()

{stats}

compute sample median

cut_width()

{ggplot2}

cut data into groups of a particular width

coord_cartesian()

{ggplot2}

use Cartesian coordinates

aes()

{ggplot2}

create aesthetic mappings between data and plot

geom_boxplot()

{ggplot2}

add layer of boxplots to plot

The end!