R 绘图 填充颜色

d <- density(mtcars$mpg)
plot(d, main="Kernel Density of Miles Per Gallon")

polygon(d, col="red", border="blue") # Filled Density Plot

posted @ 2016-01-12 17:39  liuhui_pine  阅读(1495)  评论(0)    收藏  举报