R4DS Ch. 28

scale_color_discrete()

{ggplot2}

scale color aesthetic to be discrete

scale_x_date()

{ggplot2}

scale x axis to be date

scale_y_continuous()

{ggplot2}

scale y axis to be continuous

guide_legend()

{ggplot2}

control legend formatting

scale_fill_gradient()

{ggplot2}

scale fill aesthetic to continuous color gradient

guides()

{ggplot2}

set guides for scale

scale_y_log10()

{ggplot2}

scale y axis to be log base 10

guide_colourbar()

{ggplot2}

control legend color bar

scale_color_gradient()

{ggplot2}

scale color aesthetic to continuous color gradient

geom_hline()

{ggplot2}

plot horizontal reference line

theme()

{ggplot2}

customize non-data components of plot

geom_segment()

{ggplot2}

plot line segment

labs()

{ggplot2}

modify axis, legend, and plot labels

geom_rect()

{ggplot2}

plot rectangle

xlim

{ggplot2}

coordinate argument to limit data range

coord_cartesian()

{ggplot2}

use Cartesian coordinates

ylim

{ggplot2}

coordinate argument to limit data range

scale_color_brewer()

{ggplot2}

map colors to data with ColorBrewer

scale_color_manual()

{ggplot2}

map colors to data manually

geom_vline()

{ggplot2}

plot vertical reference line

scale_x_continuous()

{ggplot2}

scale x axis to be continuous

geom_label()

{ggplot2}

adds text in rectangle to plot

geom_text()

{ggplot2}

adds text to plot

arrow()

{grid}

plot arrows

geom_label_repel(

{ggrepel}

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

quote()

{base}

returns quoted expression

ggsave()

{ggplot2}

save a ggplot

str_wrap()

{stringr}

wrap strings into nicely formatted paragraphs

cut()

{base}

divide range of vector into intervals

scale_color_gradient2()

{ggplot2}

scale color aesthetic to diverging color gradient

limits

{ggplot2}

scale argument to limit data range

annotate()

{ggplot2}

annotate plot independent of data

parse_datetime()

{readr}

parse date/time

scale_x_log10()

{ggplot2}

scale x axis to be log base 10

scale_color_viridis()

{viridis}

scale color aesthetic to viridis color gradient

The end!