psyteachr_fqa Ch. 11

library()

{base}

load R packages

c()

{base}

create vector of numbers, characters, etc.

scale_y_continuous()

{ggplot2}

scale y axis to be continuous

drop_na()

{tidyr}

drop rows containing missing values

ggplot()

{ggplot2}

create a plotting area

seq()

{base}

create sequences of numbers

geom_point()

{ggplot2}

add layer of points to plot

inner_join()

{dplyr}

join two data sets keeping the observations that they have in common

nrow()

{base}

return number of rows in matrix, data frame, etc.

median()

{stats}

compute sample median

rank()

{base}

return sample ranks of the values in a vector

read_csv()

{readr}

read comma delimited files

group_by()

{dplyr}

group data by levels of column

lm()

{stats}

fit linear model

geom_boxplot()

{ggplot2}

add layer of boxplots to plot

case_when()

{dplyr}

conditionally set values across multiple conditions

aes()

{ggplot2}

create aesthetic mappings between data and plot

geom_hline()

{ggplot2}

plot horizontal reference line

select()

{dplyr}

keep specified columns

filter()

{dplyr}

keep rows based on values of columns

summary()

{base}

return summary of model fitting functions

mutate()

{dplyr}

create or modify data columns

The end!