[R] question about plot.dendrogram
Paul Murrell
p.murrell at auckland.ac.nz
Fri May 7 03:45:44 CEST 2004
Hi
ivan.borozan at 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 at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
More information about the R-help
mailing list