Code
library(tidyverse)
library(ggplot2)
ggplot(airquality, aes(Temp, Ozone)) +
geom_point() +
geom_smooth(method = "loess"
)
Figure 1 further explores the impact of temperature on ozone level.
library(tidyverse)
library(ggplot2)
ggplot(airquality, aes(Temp, Ozone)) +
geom_point() +
geom_smooth(method = "loess"
)
Figure 2 shows correlation between highway and city mileages.
ggplot(mpg, aes(hwy, cty, color=cyl)) +
geom_point(alpha=0.5, size=2) +
scale_color_viridis_c() +
theme_minimal()
There are 234 observations in our data.
Hypothetical table_viewer
will show your tables in a much better way.
table_viewer(mpg)
you can have formulas in your document
\[ price = \hat{\beta}_0 + \hat{\beta}_1 \times area + \epsilon \]
We’re going to do this analysis using literate programming (Knuth 1984).
Here’s some information