Re: [R] Help on dendrogram reorder

2013-04-02 Thread Adams, Jean
t; > == > > if I just want to switch 7 2 4 5 to 7 4 5 2, how can I define the weights ? > > >-- > *From:* "Adams, Jean" > *To:* capricy gao > *Cc:* R help > *Sent:* Monday, March 25, 2013 8:18 AM > *Subject:* Re: [R] He

Re: [R] Help on dendrogram reorder

2013-03-25 Thread Adams, Jean
On Fri, Mar 22, 2013 at 1:48 PM, capricy gao wrote: > as.dendrogram ?reorder.dendrogram Jean [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting g

[R] Help on dendrogram reorder

2013-03-22 Thread capricy gao
I plot a dendrogram using the following code: hc <- hclust(dist(USArrests[1:10,]), "ave") unlist(as.dendrogram(hc))  [1]  7  1  8  4  6 10  9  2  3  5 how can I easily flip some leaves so that the unlist results are:  [1]  7  1  8  4  6 10  9  5 3 2 Thanks a lot! [[alternative HTML ve