R中的正则分析

R中的正则分析,r,vegan,R,Vegan,我使用下面的代码在R中的vegan软件包中获得规范分析中的图。我得到的图是轴1和轴2。如何获得轴1和轴3的绘图 library (vegan) e.data= read.csv (file.choose()) e.data.ca <- cca(e.data) plot(scores(e.data.ca,display="sites"),type="p", cex=3*log(rowSums(e.data)/max(log(rowSums(e.data)))) text (scores(

我使用下面的代码在R中的vegan软件包中获得规范分析中的图。我得到的图是轴1和轴2。如何获得轴1和轴3的绘图

library (vegan)  
e.data= read.csv (file.choose())
e.data.ca <- cca(e.data)
plot(scores(e.data.ca,display="sites"),type="p", cex=3*log(rowSums(e.data)/max(log(rowSums(e.data))))
text (scores(e.data.ca,display="sites"),row.names(e.data))
我得到以下错误:

错误:中出现意外符号:

"plot(scores(e.data.ca,display="sites"),type="p", choices=c(1,3),  cex=3*log(rowSums(e.data)/max(log(rowSums(e.data))))
    plot"
警告信息:

1: In plot.window(...) : "choices" is not a graphical parameter
2: In plot.xy(xy, type, ...) : "choices" is not a graphical parameter
3: In axis(side = side, at = at, labels = labels, ...) :
“选择”不是一个图形参数 4:在轴中(侧=侧,at=at,标签=标签,…): “选择”不是一个图形参数 5:框(…):“选项”不是图形参数 6:在标题(…):“选项”不是图形参数


任何提示都将非常感谢,因为“选择”不是图形参数,即它不是
plot
接受作为参数的参数之一。你想通过包含这个论点来实现什么?我想展示物种在轴1和轴3上的分布模式。在规范分析中是否有R代码可以显示这一点?您对
choices
的调用需要进入
scores
函数的内部,而不是
plot
,例如
plot(scores(e.data.ca,choices=c(1,3))。
不使用
scores()
,而是直接
plot
排序结果对象:
plot(e.data.ca,display=“sites”,type=“p”,choices=c(1,3),cex=3*log(rowSums(e.data)/max(log(rowSums(e.data)))
。这将使用函数
vegan:::plot.cca()
了解
选项的
vegan::scores.cca()
函数也知道
选项
就像某些答案中所说的那样,但直接绘制排序结果仍然比通过
分数循环更可取
1: In plot.window(...) : "choices" is not a graphical parameter
2: In plot.xy(xy, type, ...) : "choices" is not a graphical parameter
3: In axis(side = side, at = at, labels = labels, ...) :