[R] hidden node names in a dendrogram plot

Martin Maechler maechler at stat.math.ethz.ch
Fri Nov 21 19:10:44 CET 2003


>>>>> "Karthi" == Subramanian Karthikeyan <Subramanian_Karthikeyan at hc-sc.gc.ca>
>>>>>     on Fri, 21 Nov 2003 11:59:53 -0500 writes:

    Karthi> HI All:
    Karthi> When I plot a cluster (from hclust(...)) or a dendrogram
    Karthi> (as.dendrogram(hclust(....)), the node names are partly cut off at the
    Karthi> bottom of the plot.

    Karthi> Is there any way of resizing my cluster plot so that
    Karthi> we can see them all?

Yes, if you increase the corresponding margin (1-st or 4-th),
see ?par , e.g.,

data(USArrests)
dhc <- as.dendrogram(hc <- hclust(dist(USArrests), "ave"))
par(mar=c(3,2,2,6))
plot(dhc, horiz=TRUE)

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO C16	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><




More information about the R-help mailing list