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

# S3 method for 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

# \donttest{ library(cluster) data(ruspini) # 10-fold cross-validation cptable <- cv.test(ruspini, minnodes = 2, maxnodes = 4) plot(cptable)
# }