Skip to content
Back to formatted view

Raw Message

Message-ID: <3A822319EB35174CA3714066D590DCD504AF7B1E@usrymx25.merck.com>
Date: 2004-04-05T15:03:46Z
From: Liaw, Andy
Subject: rect.hclust fails when k is specified (PR#6740)

I don't think that's a bug.  As ?rect.hclust says, it adds a rectangle to
the dendrogram, which means you need to plot the dendrogram _first_.  See
the example code in the help file.

Andy

> From: ivan_yegorov@mail.ru
> 
> Full_Name: Ivan Egorov
> Version: 1.8.1
> OS: MS Windows 2000, SP4
> Submission from: (NULL) (194.186.91.129)
> 
> 
> V<-t(matrix(scan('C:/V3.dat'),3))
> d<-dist(V)
> hc<-hclust(d)
> rect.hclust(hc,5)
> 
> Error message is displayed:
> 
> Read 24 items
> Error in rect(m[which[n]] + 0.66, par("usr")[3], m[which[n] + 
> 1] + 0.33,  : 
>         plot.new has not been called yet
> 
> Here's my data file ('C:/V3.dat')
> 
> -1	-73	12
> -70	-26	-8
> -78	-101	-35
> -38	-24	-16
> 39	-54	3
> -40	-13	-19
> -45	-9	-19
> -18	-22	2
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> 
>