[R] HCLUSTER

Katia Freire kfreire2006 at yahoo.com.br
Sun Feb 16 14:08:43 CET 2014


Dear all,

I am a beginner in R and I am trying to organize my dendrogram in a better order to vizualize our data better.

I am joining months based on the occurrence of spawning of species and would like the plot in order of months: Nov-Dec, Jan-Feb-Mar and then Apr-May-Jun Jul-Aug Sept-Oct

Is that possible? Kátia.


setwd("I:/UFS/Bolsas/Isaac")
data<-read.table("desmest16fev14.txt",header=T)
data
rownames(data) <-data[,1]
data <-data[,-1]
d <- vegdist(data, method = "bray")
d
clust.res<-hclust(d,method="average")
plot(clust.res,hang=-1,ylab="Bray Curtis",xlab="Mês")
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: desmest16fev14.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20140216/a7f02746/attachment.txt>


More information about the R-help mailing list