K-means cluster analysis is a very useful multivariate partitioning tool. This R example shows how one can perform cluster analysis and provides an example of creating a scree plot to determine an appropriate number of clusters. It is also a highly useful data mining technique.