Dowjones | R Documentation |
Data for Exercise 1.35
Dowjones
A data frame/tibble with 105 observations on three variables
date
Dow Jones closing price
percent change from previous year
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
plot(close ~ year, data = Dowjones, type = "l", main = "Exercise 1.35")
## Not run:
library(ggplot2)
ggplot2::ggplot(data = Dowjones, aes(x = year, y = close)) +
geom_point(size = 0.5) +
geom_line(color = "red") +
theme_bw() +
labs(y = "Dow Jones Closing Price")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.