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

R 稀疏曲线制作,可以用ggplot2

(2014-07-02 08:35:50)
分类: ggplot2

data <- read.table("gos.fn.GS020.rarefaction")
attach(data)
plot(numsampled, unique, type="b", xlab="# sequences sampled", ylab="Observed OTUs", col="blue")
lines(numsampled, X0.03, type="b", col="green")
lines(numsampled, X0.05, type="b", col="red")
lines(numsampled, X0.10, type="b", col="magenta")
legend("topleft",c('Unique','97%','95%', '90%'),
   pch=c(16,16,16,16), lty=c(1,1,1,1),
  col=c('blue','green','red','magenta')
  ,ncol=1)

 

http://www.plob.org/2014/05/11/7264.html

 

http://docs.ggplot2.org/current/index.html

 

http://www.tuicool.com/articles/nUf2ae

0

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

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

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

新浪公司 版权所有