library(vegan) #loads the "vegan" module that compuptes ANOSIM
library(cluster)
community <- read.csv("ANOSIMmites.csv", header=TRUE) #reads the data file into memory under the name "community"
enviro <- read.csv("ANOSIMenv.csv", header=TRUE) #reads the grouping variables into memory
attach(enviro)
attach(community)
community.dist <- vegdist(community)
community.ano <- anosim(community.dist, plant)
summary(community.ano)
clust <- hclust(community.dist, method = "complete", members=NULL)
plot(clust, labels = sample, hang = 0.05, axes = TRUE, frame.plot = FALSE, ann = F, main = "Dendrogram of sample similarity", sub = "based on associated soil mite species", xlab = NULL, ylab = "Height")
Thanks! Mark
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html