This is an R-HTML document & can be embeded an R code chunk like this:
Scatter plot with geom_smooth(), facet, labels & theme geom_smooth()library(tidyverse)
CO2 %>% ggplot(aes(conc, uptake, color = Treatment)) + geom_point(size = 3, alpha = 0.5) + geom_smooth(se = F) + facet_wrap(~Type) + labs(title = "Scatter plot with geom_smooth(), facet & labels") + theme_bw()
library(tidyverse) CO2 %>% ggplot(aes(conc, uptake, color = Treatment)) + geom_point(size = 3, alpha = 0.5) + geom_smooth(method = lm, se = F) + facet_wrap(~Type) + labs(title = "Scatter plot with geom_smooth(), facet & labels") + theme_bw()