Learn R Programming

h2o (version 2.8.4.4)

plot.H2OGapStatModel: Elbow Plots and Gap Measures

Description

Draw the number of clusters against the within cluster sum of squares, the expected within cluster sum of squares, and the gap statistics.

Usage

## S3 method for class 'H2OGapStatModel':
plot(x, ...)

Arguments

x
An H2OGapStatModel object.
...
Arguments to be passed to methods, such as graphical parameters (see par for details).

See Also

H2OGapStatModel

Examples

Run this code
library(h2o)
  localH2O <- h2o.init()
  iris.hex <- as.h2o(localH2O, iris)
  gs <- h2o.gapStatistic(iris.hex, K = 5, B = 10)
  plot(gs)

Run the code above in your browser using DataLab