[R] Dendrogram plotting options?

From: Mark St. John <singin_at_personainternet.com>
Date: Mon 19 Jul 2004 - 10:00:40 EST

Hi, I was wondering if there is more flexibility in the output of dendrograms when plotting a hclust object. I can't seem to find information on how to change the default output of a "hanging" style tree with the axis on the right to a left-to-right plot with and axis on the bottom. Example code follows:

library(vegan) #loads the "vegan" module that compuptes ANOSIM library(cluster)
community <- read.csv("ANOSIMmites.csv", header=TRUE) #reads the data file into memory under the name "community" enviro <- read.csv("ANOSIMenv.csv", header=TRUE) #reads the grouping variables into memory
community.dist <- vegdist(community)
community.ano <- anosim(community.dist, plant) summary(community.ano)
clust <- hclust(community.dist, method = "complete", members=NULL) plot(clust, labels = sample, hang = 0.05, axes = TRUE, frame.plot = FALSE, ann = F, main = "Dendrogram of sample similarity", sub = "based on associated soil mite species", xlab = NULL, ylab = "Height")

Thanks! Mark

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 Received on Mon Jul 19 10:08:15 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:36:43 EST