Learn R Programming

BSDA (version 1.2.1)

Dowjones: Closing yearend Dow Jones Industrial averages from 1896 through 2000

Description

Data for Exercise 1.35

Usage

Dowjones

Arguments

Format

A data frame/tibble with 105 observations on three variables

year

date

close

Dow Jones closing price

change

percent change from previous year

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

Run this code

plot(close ~ year, data = Dowjones, type = "l", main = "Exercise 1.35")
if (FALSE) {
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")
}

Run the code above in your browser using DataLab