I am using the two functions hclust and plot to draw a dendrogram. The result is a vertical dendrogram , but I prefer a horizontal one. Need help. This is my script: dd1=hclust(d1, method="ward") plot(dd1) [[alternative HTML version deleted]]
Lassana TOURE wrote:> I am using the two functions hclust and plot to draw a dendrogram. The > result is a vertical dendrogram , but I prefer a horizontal one. > > Need help.Take a look at `?dendrogram'. HTH, Henric> > This is my script: > > > > dd1=hclust(d1, method="ward") > > plot(dd1) > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. >
Try: plot(as.dendrogram(dd1), horiz = TRUE, nodePar = list(lab.cex = .4)) On Thu, Mar 27, 2008 at 1:08 PM, Lassana TOURE <lassana.toure at ier.ml> wrote:> I am using the two functions hclust and plot to draw a dendrogram. The > result is a vertical dendrogram , but I prefer a horizontal one. > > Need help. > > This is my script: > > > > dd1=hclust(d1, method="ward") > > plot(dd1) > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. >