The R Project SVN R

Rev

Rev 59039 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61160
Line 38... Line 38...
38
\examples{
38
\examples{
39
require(graphics)
39
require(graphics)
40
 
40
 
41
hca <- hclust(dist(USArrests))
41
hca <- hclust(dist(USArrests))
42
plot(hca)
42
plot(hca)
43
rect.hclust(hca, k=3, border="red")
43
rect.hclust(hca, k = 3, border = "red")
44
x <- rect.hclust(hca, h=50, which=c(2,7), border=3:4)
44
x <- rect.hclust(hca, h = 50, which = c(2,7), border = 3:4)
45
x
45
x
46
}
46
}
47
\keyword{aplot}
47
\keyword{aplot}
48
\keyword{cluster}
48
\keyword{cluster}