- Why now?
- Why R?
- General tips
- Recommended packages
- Recommended resources
9th January 2017
install.packages("tidyverse") library(tidyverse)
library()
for any new R session you want to use it withx <- c(10, 5, 15) mean_x <- x %>% mean()
qplot(x = df$x, y = df$y)
qplot(df$x, df$y) + geom_smooth(method = "lm")
ggplot(data = df, mapping = aes(x = x, y = y)) + geom_point() + geom_smooth(method = "lm")
ggplot(data = df, mapping = aes(x = x, y = y, colour = treatment)) + geom_point() + geom_smooth(method = "lm")
ggplot(df, aes(x, y, colour = treatment)) + geom_point() + geom_smooth(method = "lm") + theme_few() + scale_color_brewer(palette = "Set1")