您的位置:首页 > 其它

2015年09月26日

2016-07-23 18:11 134 查看
Veg <- read.table(file = "Vegetation2.txt",header = T)
plot(x=Veg$BARESOIL,y=Veg$R,xlim = c(0,45),ylim = c(4,19))
M.Loess <- loess(R~BARESOIL,data = Veg)                    #对数据进行计算,Loess平滑
FIT <- fitted(M.Loess)                                                            #拟合Ord1 <- order(Veg$BARESOIL)
lines(Veg$BARESOIL[Ord1],FIT[Ord1],lwd=3,lty=2,col=14)     #在图上添线
 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: