xy | R Documentation |
Data to demonstrate Mahalanobis hierarchical cluster analysis. The consist of a 150x2 numeric matrix containing three 2D elliptical clusters, each comprising of 50 observations.
data(xy)
A 150x2 numeric matrix of 150 observations and 2 features.
if (interactive()) {
library(mhca)
data(xy)
mh<-mhclust(xy,thresh=.3)
plot(xy[,1],xy[,2],asp=1,col=cutree(mh,2))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.