Re: [R] question about plot.dendrogram

About this list Date view Thread view Subject view Author view Attachment view

From: Paul Murrell (p.murrell@auckland.ac.nz)
Date: Fri 07 May 2004 - 11:45:44 EST


Message-id: <409AEA48.9040609@stat.auckland.ac.nz>

Hi

ivan.borozan@utoronto.ca wrote:
> hi all,
>
> i'm trying to plot a dendrogram with labeled leaves
>
>>rownames(f)<-v.names
>>v<-rowMeans(f, na.rm=T)
>>clust<-hclust(dist(v))
>>dend<-as.dendrogram(clust,hang=0.05)
>>clust2<-cut(dend, h=0.5)
>>class(clust2$low[[1]])
>>[1] "dendrogram"
>
> then
>
>>plot(clust2$low[[1]],horiz=TRUE,frame=F,type = "tr"))
>
> but my leaf labels do not fit entirely in the plot region. Has anyone an idea
> how to get around this without using cex , something similar to "hang=0.5" so
> that my labels do not start to hang from 0 ?

Does making the bottom figure margin bigger help? e.g., ...

par(mar=c(10, 4, 4, 2))

Paul

-- 
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul@stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:08 EST