MSG (version 0.3)

ChinaLifeEdu: Life Expectancy and the Number of People with Higher Education in China (2005)

Description

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

Arguments

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

Examples

Run this code
# NOT RUN {
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"))
# }

Run the code above in your browser using DataCamp Workspace