ChinaLifeEdu: Life Expectancy and the Number of People with Higher...

Description Format Source Examples

Description

This data contains the life expectancy and number of people with higher education in the 31 provinces and districts in China (2005).

Format

A data frame with 31 observations on the following 2 variables.

Life.Expectancy

Life expectancy

High.Edu.NO

Number of people with higher education

Source

China Statistical Yearbook 2005. National Bureau of Statistics.

Examples

1
2
3
4
5
6
7
8
9
data(ChinaLifeEdu)
x = ChinaLifeEdu
plot(x, type = "n", xlim = range(x[, 1]), ylim = range(x[, 2]))
u = par("usr")
rect(u[1], u[3], u[2], u[4], col = "antiquewhite", border = "red")
library(KernSmooth)
est = bkde2D(x, apply(x, 2, dpik))
contour(est$x1, est$x2, est$fhat, nlevels = 15, col = "darkgreen", add = TRUE,
    vfont = c("sans serif", "plain"))

yihui/MSG documentation built on Aug. 16, 2021, 12:13 p.m.