plot.cv.MonoClust: Plot the Mean Square Error with Error Bar for +/- 1 Standard...

Description Usage Arguments Value See Also Examples

View source: R/plot.cv.monoclust.R

Description

Plot the Mean Square Error with Error Bar for +/- 1 Standard Error

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class 'cv.MonoClust'
plot(
  x,
  main = "MSE for CV of monothetic clustering",
  xlab = "Number of clusters",
  ylab = "MSE +/- 1 SE",
  type = "b",
  lty = 2,
  err.col = "red",
  err.width = 0.1,
  ...
)

Arguments

x

A cv.MonoClust object (output of cv.test()).

main

Overall title for the plot.

xlab

Title for x axis.

ylab

Title for y axis.

type

What type of plot should be drawn. See graphics::par().

lty

The line type.

err.col

Color of the error bars.

err.width

Width of the bars.

...

Arguments to be passed to graphics::plot.default().

Value

A line plot with error bars.

See Also

Plot using ggplot2 ggcv()

Examples

1
2
3
4
5
6
library(cluster)
data(ruspini)

# 10-fold cross-validation
cptable <- cv.test(ruspini, minnodes = 2, maxnodes = 4)
plot(cptable)

monoClust documentation built on Feb. 15, 2021, 5:07 p.m.