multidimensional array - Lines of same bray-curtis similarity plotted onto MDS in R -


does know how plot lines of equal similarity (as determined bray-curtis matrix) onto mds plot in r.

i have managed overlay cluster (hclust()) onto mds (metamds()) community composition data want draw compositional hulls around sites of same or higher similarity.

if have hclust-object can use cutree() extract groups dissimilarity greater specific value.

this grouping variable can plotted onto nmds-plot via ordihull() or ordispider().

here example:

require(vegan) data(dune)  # nmds nmds <- metamds(dune)  # cluster clus <- hclust(vegdist(dune)) plot(clus) rect.hclust(clus, h = 0.6) 

enter image description here

# extract groups similarity > 0.6 between group_clus <- cutree(clus, h=0.6)   # plot 4 groups plot(nmds, display = 'sites', type = 'text') ordihull(nmds, groups=group_clus) 

enter image description here


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -