Life {BSDA} | R Documentation |
Data for Exercise 1.31
Life
A data frame with 8 observations on the following 3 variables.
year
Men
Women
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Duxbury
str(Life) attach(Life) plot(year,Men,type="l",ylim=c(min(Men,Women),max(Men,Women)),col="blue", main="Life Expectancy versus Year",ylab="Age",xlab="Year") lines(year,Women,col="red") text(1955,65,"Men",col="blue") text(1955,70,"Women",col="red") detach(Life)