Re: [R] Plotting Dendrogram Help Getting Plot to Display Neatly

From: Jim Lemon <jim_at_bitwrit.com.au>
Date: Sat, 01 Mar 2008 19:26:09 +1100

ngottlieb_at_marinercapital.com wrote:
> I have done a cluster analysis doing:
>
> 1-clusNorth <-hclust(dist(Artorious)^2, method="ward")
> 2-clusNorth$labels <-Artorious$Name ## to show the case names and not
> numbers
> 3-dend1 <- as.dendrogram(clusNorth)
> 4-plot(dend1)
>
> My Dendrogram is now showing the names of my cases in the dataframe on
> the x axis
>
> 1 OMNICELL INC COM
> 2 GETTY IMAGES INC COM
> 3 INTERCONTINENTALEXCHANGE IN COM
> 4 OPTIONSXPRESS HLDGS INC COM
> 5 SUPERIOR WELL SVCS INC COM
> 6 HCP INC COM
> 7 SENIOR HSG PPTYS TR SH BEN INT
> 8 NATIONWIDE HEALTH PPTYS INC COM
> 9 DUKE REALTY CORP COM NEW
> 10 HEALTH CARE REIT INC COM
> 11 POWERSHARES QQQ TRUST UNIT SER 1
> 12 FLEXTRONICS INTL LTD ORD
> 13 VENTAS INC COM
>
>
> However with 60 cases the names above are not fitting neatly into plot.
> Can someone advice on plot
> Parameters to fix the size of dendrogram and see the full names on X
> axis?
>
Hi Neil,
If the names are not too crowded, staxlab in the plotrix package might do it.

Jim



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. Received on Sat 01 Mar 2008 - 08:24:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 01 Mar 2008 - 08:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive