PlotHartigan: Plot a series of Hartigan's Numbers

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/hartigan.r

Description

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

Usage

1
2
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

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

useful documentation built on June 10, 2018, 1:04 a.m.