R4DS Ch. 28

str_wrap()

{stringr}

wrap strings into nicely formatted paragraphs

geom_vline()

{ggplot2}

plot vertical reference line

geom_text()

{ggplot2}

adds text to plot

labs()

{ggplot2}

modify axis, legend, and plot labels

scale_color_discrete()

{ggplot2}

scale color aesthetic to be discrete

scale_color_manual()

{ggplot2}

map colors to data manually

scale_y_log10()

{ggplot2}

scale y axis to be log base 10

guides()

{ggplot2}

set guides for scale

annotate()

{ggplot2}

annotate plot independent of data

cut()

{base}

divide range of vector into intervals

ggsave()

{ggplot2}

save a ggplot

arrow()

{grid}

plot arrows

scale_color_viridis()

{viridis}

scale color aesthetic to viridis color gradient

geom_hline()

{ggplot2}

plot horizontal reference line

ylim

{ggplot2}

coordinate argument to limit data range

limits

{ggplot2}

scale argument to limit data range

guide_colourbar()

{ggplot2}

control legend color bar

scale_fill_gradient()

{ggplot2}

scale fill aesthetic to continuous color gradient

scale_color_gradient()

{ggplot2}

scale color aesthetic to continuous color gradient

guide_legend()

{ggplot2}

control legend formatting

coord_cartesian()

{ggplot2}

use Cartesian coordinates

scale_color_gradient2()

{ggplot2}

scale color aesthetic to diverging color gradient

scale_x_log10()

{ggplot2}

scale x axis to be log base 10

xlim

{ggplot2}

coordinate argument to limit data range

scale_x_continuous()

{ggplot2}

scale x axis to be continuous

geom_label()

{ggplot2}

adds text in rectangle to plot

geom_label_repel(

{ggrepel}

adds text in rectangle to plot with labels repelling away from each other and the data

scale_y_continuous()

{ggplot2}

scale y axis to be continuous

scale_x_date()

{ggplot2}

scale x axis to be date

theme()

{ggplot2}

customize non-data components of plot

geom_segment()

{ggplot2}

plot line segment

scale_color_brewer()

{ggplot2}

map colors to data with ColorBrewer

geom_rect()

{ggplot2}

plot rectangle

quote()

{base}

returns quoted expression

parse_datetime()

{readr}

parse date/time

The end!