我在编写R语言中的凝聚聚类时遇到了这段代码。我没有使用"其中" plot plot中的关键字:
xy <- rbind(matrix(rnorm(100, sd = 0.3), ncol = 2),
matrix(rnorm(100, mean = 1, sd = 0.3), ncol = 2))
library(cluster) # for "agnes()" and "diana()" functions
ah <- agnes(xy) # notice that the number of clusters is not specified
plot(ah,which=2) # plot only the dendrogram
有人可以帮忙吗?