# NOT RUN {
# An oridinary cluster analysis
ddr<- as.dist((1-cor(t(nveg)))/2) # distance matrix, correlation as distance
o.hclr<- hclust(ddr,method="complete")
o.relgr<- cutree(o.hclr,k=3)
# Getting silhouette plot
o.davesil<- davesil(ddr,o.hclr,o.relgr)
plot(o.davesil)
# }
Run the code above in your browser using DataLab