30 vegan包问题请教

老师,您好,请问按照vegan包绘制物种累积曲线的时候,最后得不到图的结果,而得出以下内容:

require(vegan)
> otu <- read.table("C:/Users/CHEN/Desktop/otu_table.txt", header = T,
+                   sep = "\t",row.names=1)
> all <- specaccum(otu, method = "random")  
> png(file="spe.png",h=2000,w=2000,res=300)
> plot(all, ci.type = "poly", col = "blue", lwd = 2, ci.lty = 0,
+      ci.col = "lightblue", main = "Species Accumulation Curves", xlab = "Number of samples",
+      ylab = "Number of  species")
> boxplot(all, col = "yellow", add = TRUE, pch = "+")
> dev.off()
RStudioGD 
        2


不知道是什么原因

请先 登录 后评论

1 个回答

omicsgene - 生物信息
擅长:重测序,遗传进化,转录组,GWAS

输出到这个文件了,你看看工作目录是否有这个图片:attachments-2021-02-tYk8Volf602b7784ab43b.png

请先 登录 后评论
  • 1 关注
  • 0 收藏,1906 浏览
  • 流年、 提出于 2021-02-14 23:09

相似问题