2015年9月25日

来源:互联网 发布:淘宝袜子好评语100字 编辑:程序博客网 时间:2024/04/26 12:42
#plot,其中对颜色按数据分析
Veg <- read.table(file = "Vegetation2.txt",header = T)

names(Veg)

?par

Veg$Time2 <- Veg$Time
Veg$Time2 [Veg$Time <= 1974] <-15
Veg$Time2 [Veg$Time >1974] <-16
Veg$Col2 <- Veg$Time
Veg$Col2 [Veg$Time <= 1974] <- 1
Veg$Col2 [Veg$Time >1974] <- 2

plot(x=Veg$BARESOIL,y=Veg$R,xlab = "Exposed soil",
     ylab = "Species richness",xlim=c(0,45),ylim=c(4,19),
     main="Scatter plot",pch=Veg$Time2,col=Veg$Col2,cex=1.0)
2015年9月25日 - paul_sweet@126 - MOMO
 




0 0
原创粉丝点击