Description Format Source Examples
This data contains the life expectancy and number of people with higher education in the 31 provinces and districts in China (2005).
A data frame with 31 observations on the following 2 variables.
Life expectancy
Number of people with higher education
China Statistical Yearbook 2005. National Bureau of Statistics.
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"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.