Tutorial by Examples

The cluster library contains the ruspini data - a standard set of data for illustrating cluster analysis. library(cluster) ## to get the ruspini data plot(ruspini, asp=1, pch=20) ## take a look at the data hclust expects a distance matrix, not the original data. We ...
With hierarchical clustering, outliers often show up as one-point clusters. Generate three Gaussian distributions to illustrate the effect of outliers. set.seed(656) x = c(rnorm(150, 0, 1), rnorm(150,9,1), rnorm(150,4.5,1)) y = c(rnorm(150, 0, 1), rnorm(150,0,1), rnorm(150,5,1)) ...

Page 1 of 1