I was missing something. Thx Dennis.

---------- Forwarded message ----------
From: Dennis Murphy <djmu...@gmail.com>
Date: Tue, Nov 17, 2009 at 12:34 AM
Subject: Re: dendrogram
To: jorism...@gmail.com


Hi,

There are a couple of things you could do to pull the text back into
the dendrogram plot,
both of which I found by looking at the example for pltree.twins() in
the cluster package.

Method 1: Adjust the graphical parameters to add more space on the right:

op <- par(mar = par("mar") + c(0,0,0, 2))
plot(as.dendrogram(TestAgnes), horiz = TRUE, center = TRUE)
par(op)    # returns graphical parameters to their original state

Method 2: Reduce the font size of the labels (very useful if the
dendrogram has a large
               number of labels.

plot(as.dendrogram(TestAgnes), horiz = TRUE, center = TRUE,
      nodePar = list(lab.cex = 0.7, pch = NA))

Why did I look at pltree.twins?

> class(TestAgnes)
[1] "agnes" "twins"

HTH.

DM

______________________________________________
R-help@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.

Reply via email to