PlotHartigan {useful}R Documentation

Plot a series of Hartigan's Numbers

Description

After fitting a series of Hartigan's Numbers (see FitKMeans) this will plot the results so it is easy to visualize

Usage

PlotHartigan(hartigan, title = "Hartigan's Rule", smooth = FALSE,
  linecolor = "grey", linetype = 2L, linesize = 1L, minor = TRUE)

Arguments

hartigan

The results from FitKMeans

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

Details

Displays a graphical representation of the results of FitKMeans

Value

a ggplot object

Author(s)

Jared P. Lander www.jaredlander.com

References

#' http://www.stat.columbia.edu/~madigan/DM08/descriptive.ppt.pdf

See Also

kmeans FitKMeans

Examples


data(iris)
hartiganResults <- FitKMeans(iris[, -ncol(iris)])
PlotHartigan(hartiganResults)


[Package useful version 1.2.6.1 Index]