全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1870 1
2011-11-04
请教各位大神,如何用R做两变量的Smoothed scatter plot~小弟新手,多谢了啊~
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-1-12 17:43:14
给个例子你吧~  

require(graphics)

with(cars,scatter.smooth(speed, dist))

## or with dottedthick smoothed line results :

with(cars,scatter.smooth(speed, dist, lpars =

                    list(col = "red",lwd = 3, lty = 3)))

  

还可以参考:http://flowingdata.com/2010/03/29/how-to-make-a-scatterplot-with-a-smooth-fitted-line/

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群