Displaying 1 result from an estimated 1 matches for "grl".
Did you mean:
gpl
2014 Jun 30
1
How to combine/join/merge etc PCA and Cluster?
...and Cluster however, without
differentiating the colors of each ecosystem.
#PCA
mydata.pca<-rda(mydata)
#Cluster
mydata.w <- hclust(dist(Sqchord.mydata), "ward")
plot(mydata.w, hang=-1)
rect.hclust(mydata.w, 5)
# Cut the dendrogram to yield 5 groups
gr <- cutree(mydata.w, k=5)
grl <- levels(factor(gr))
# Get the site scores, scaling 1
sit.sc1 <- scores(mydata.pca, display="w", scaling=3)
# Plot the sites with cluster symbols and colours (scaling 3)
p <- plot(mydata.pca, display="wa", scaling=3, type="n",
main="Mydata P...