Re: [R] Dendrogram labels

From: Fan Yang <yangfan1_at_msu.edu>
Date: Fri, 21 Nov 2008 14:49:44 -0500

hah, I see what you mean. try:
plot(a, leaflab=c("textlike")).

fan

On Nov 21, 2008, at 2:30 PM, Richardson, Patrick wrote:

> This does work, but also orients the entire dendrogram as
> horizontal. If I could, I'd like the dendrogram to stay vertical
> and just orient the labels as horizontal.
>
> Many thanks,
>
> _____________________________________________
> Patrick Richardson
> Biostatistician - Program of Translational Medicine
> Van Andel Research Institute - Webb Lab
> 333 Bostwick Avenue NE
> Grand Rapids, MI 49503
> ph. 616.234.5787
>
>
> -----Original Message-----
> From: Fan Yang [mailto:yangfan1_at_egr.msu.edu]
> Sent: Friday, November 21, 2008 2:28 PM
> To: Richardson, Patrick
> Cc: 'r-help_at_r-project.org'
> Subject: Re: [R] Dendrogram labels
>
> Try:
>
> b<-as.dendrogram(a); plot(b, horiz=TRUE).
>
> that should help.
>
> fan
>
>
> On Nov 21, 2008, at 2:14 PM, Richardson, Patrick wrote:
>
>> Is there any way to change the orientation of the labels on the end
>> of the dendrograms to horizontal rather than vertical? If so, how
>> can I do that. Below is my code, but I'm not sure which argument(s)
>> I can use to change the label(s) (if it is possible to do).
>>
>> a <- hclust(z, method = "complete")
>>
>> # Plots hclust dendrogram #
>> plot(a, frame.plot=TRUE, lwd=2)
>>
>> Many thanks,
>>
>> _____________________________________________
>> Patrick Richardson
>> Biostatistician - Program of Translational Medicine
>> Van Andel Research Institute - Webb Lab
>> 333 Bostwick Avenue NE
>> Grand Rapids, MI 49503
>> ph. 616.234.5787
>>
>>
>> This email message, including any attachments, is for th...{{dropped:
>> 9}}
>>
>> ______________________________________________
>> R-help_at_r-project.org mailing list
>>
https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> This email message, including any attachments, is for ...{{dropped:22}}



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 21 Nov 2008 - 19:51:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 21 Nov 2008 - 20:30:33 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive