Life | R Documentation |
Data for Exercise 1.31
Life
A data frame/tibble with eight observations on three variables
a numeric vector indicating year
life expectancy for men (in years)
life expectancy for women (in years)
National Center for Health Statistics.
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
plot(men ~ year, type = "l", ylim = c(min(men, women), max(men, women)),
col = "blue", main = "Life Expectancy vs Year", ylab = "Age",
xlab = "Year", data = Life)
lines(women ~ year, col = "red", data = Life)
text(1955, 65, "Men", col = "blue")
text(1955, 70, "Women", col = "red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.