[R] Dendrogram labels
Fan Yang
yangfan1 at msu.edu
Fri Nov 21 20:49:44 CET 2008
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}}
More information about the R-help
mailing list