Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Life

Life expectancy of men and women in U.S.


Description

Data for Exercise 1.31

Usage

Life

Format

A data frame/tibble with eight observations on three variables

year

a numeric vector indicating year

men

life expectancy for men (in years)

women

life expectancy for women (in years)

Source

National Center for Health Statistics.

References

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

Examples

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")

BSDA

Basic Statistics and Data Analysis

v1.2.0
GPL (>= 2)
Authors
Alan T. Arnholt [aut, cre], Ben Evans [aut]
Initial release
2017-07-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.