R语言中分组绘制概率密度图
(2014-06-24 13:32:52)
标签:
r数据可视化 |
分类: R语言 |
> #使用R绘制分组比较的实心概率密度图
> require(sm)
> #sm包的全称是Smoothing Methods for Nonparametric regression
and density estimation
> attach(mtcars)
The following objects are masked _by_ .GlobalEnv:
The following objects are masked from mtcars (position
3):
>
sm.density.compare(mpg,cyl,xlab="miles per gallon",main="MPG
Distribution by Number of Cylinders")
前一篇:R语言中绘制实心概率密度图
后一篇:R中绘制箱线图(带凹槽)