加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

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:

    am, cyl, hp, vs, wt
The following objects are masked from mtcars (position 3):

    am, carb, cyl, disp, drat, gear, hp, mpg, qsec, vs, wt
> sm.density.compare(mpg,cyl,xlab="miles per gallon",main="MPG Distribution by Number of Cylinders")

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有