====== K-means Cluster Analysis ====== FIXME This is based on a tutorial by Prof. Hans Peter Blankholm. Start a new **R** session. Import your data file containing the XY coordinates of your objects, one per line. {{ spatial_analysis:kmeans1.png?300|Graphic output}} bc <- read.table("blackche.adf") bc.km <- kmeans(bc,7) plot(bc, pch=20, col = bc.km$cluster) symbols(bc.km$centers, circles = bc.km$withinss, add, TRUE)