I use k-means analysis and bind the cluster number (km$cluster) to my original data frame. I would like to present histogram per cluster number in one plot (each km$cluster contains at least 2000 observations). Is it possible?How can i do it?Many thanks,Ron
dd <- "UserID MoneyAmount DaysReg km$cluster \n 1 5 6 1.4 1 \n 2 4 9 1.4 1 \n 3 6 7 1.3 1 \n 4 7 30 9.4 2"
Data <- read.table(text=dd, header = TRUE)
sessionInfo()
R version 3.0.2 (2013-09-25) Platform: i386-w64-mingw32/i386 (32-bit)
[1] ggplot2_0.9.3.1 flexclust_1.3-4 modeltools_0.2-21 lattice_0.20-23 RODBC_1.3-10