PlotHartigan | R Documentation |
After fitting a series of Hartigan's Numbers (see FitKMeans
) this will plot the results so it is easy to visualize
PlotHartigan(hartigan, title = "Hartigan's Rule", smooth = FALSE,
linecolor = "grey", linetype = 2L, linesize = 1L, minor = TRUE)
hartigan |
The results from
|
title |
Title to be used in the plot |
smooth |
logical; if true a smoothed line will be fit to the points, otherwise it will be a piecewise line |
linecolor |
Color of the horizontal line denoting 10 |
linetype |
Type of the horizontal line denoting 10 |
linesize |
Size of the horizontal line denoting 10 |
minor |
logical; if true minor grid lines will be plotted |
Displays a graphical representation of the results of FitKMeans
a ggplot object
Jared P. Lander www.jaredlander.com
#' http://www.stat.columbia.edu/~madigan/DM08/descriptive.ppt.pdf
kmeans
FitKMeans
data(iris)
hartiganResults <- FitKMeans(iris[, -ncol(iris)])
PlotHartigan(hartiganResults)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.