data=read.csv("2dplot.csv")
x=data$labor.gdp
y=data$capital.gdp
xy.kde <- kde2d(x,y, n = 100)
rgb.palette=colorRampPalette(c("white","red"))
filled.contour(xy.kde,xlim = c(0, 0.07), ylim = c(0, 15),col = rgb.palette(27),
plot.title = title(main = "",xlab = "Growth rate of labor/gdp", ylab = "Growth rate of capital/gdp"))
contour(xy.kde, xlim = c(0, 0.07), ylim = c(0, 15),lwd=1,add = T)
points(x,y, pch = 16, cex = 0.5)


雷达卡





京公网安备 11010802022788号







