R 纯素包装点颜色

R 纯素包装点颜色,r,plot,vegan,mds,R,Plot,Vegan,Mds,我正在使用以下代码进行MDS打印,使用pch和col选项更改点符号和颜色时遇到问题。这是我的代码: library(vegan) library(RColorBrewer) xc <- cor(my.data, use = "pairwise.complete.obs", method = "spearman") xc.dist <- dist(xc) xcMDS <- monoMDS(xc.dist, k =2) par(mar = c(5, 4, 1, 3)) plo

我正在使用以下代码进行MDS打印,使用pch和col选项更改点符号和颜色时遇到问题。这是我的代码:

library(vegan) 
library(RColorBrewer)
xc <- cor(my.data, use  = "pairwise.complete.obs", method  = "spearman")
xc.dist <- dist(xc)
xcMDS <- monoMDS(xc.dist, k =2)
par(mar = c(5, 4, 1, 3))
plot(xcMDS, type = "n", ylim = c(-2,2), xlim = c(-2.5,2.5), las = 1, cex.axis = 0.75, xlab = "First dimension of non-metric  \n multidimensional scaling (NMDS)", ylab = "Second dimension of NMDS", xaxp=c(-2,2,4), yaxp=c(-2,2,4))
cols= "#66C2A5"
points(xcMDS, col = cols, pch = 16)

monods
没有
点()
方法。有人懒得写那个

你可以用

 points(scores(xcMDS), col = cols, pch = 16)

非常抱歉给您带来不便。

monods
没有
点()
方法。有人懒得写那个

你可以用

 points(scores(xcMDS), col = cols, pch = 16)

非常感谢Jari Oksanenth github素食者资源库现在为
monoMDS
提供了
积分
text
。应该出现在素食者的未来版本中。非常感谢Jari Oksanenth,素食者的github存储库现在有
文本
用于
monoMDS
。应该出现在素食者的未来版本中。