powered by
After fitting a series of Hartigan's Numbers (see FitKMeans) this will plot the results so it is easy to visualize
FitKMeans
PlotHartigan(hartigan, title = "Hartigan's Rule", smooth = FALSE, linecolor = "grey", linetype = 2L, linesize = 1L, minor = TRUE)
The results from FitKMeans
Title to be used in the plot
logical; if true a smoothed line will be fit to the points, otherwise it will be a piecewise line
Color of the horizontal line denoting 10
Type of the horizontal line denoting 10
Size of the horizontal line denoting 10
logical; if true minor grid lines will be plotted
a ggplot object
Displays a graphical representation of the results of FitKMeans
#' http://www.stat.columbia.edu/~madigan/DM08/descriptive.ppt.pdf
kmeans FitKMeans
kmeans
# NOT RUN { data(iris) hartiganResults <- FitKMeans(iris[, -ncol(iris)]) PlotHartigan(hartiganResults) # }
Run the code above in your browser using DataLab