ggcv {monoClust} | R Documentation |
GGPlot the Mean Square Error with Error Bar for +/- 1 Standard Error
Description
GGPlot the Mean Square Error with Error Bar for +/- 1 Standard Error
Usage
ggcv(
cv.obj,
title = "MSE for CV of monothetic clustering",
xlab = "Number of clusters",
ylab = "MSE +/- 1 SE",
type = c("b", "p", "l"),
linetype = 2,
err.col = "red",
err.width = 0.2
)
Arguments
cv.obj |
A |
title |
Overall title for the plot. |
xlab |
Title for x axis. |
ylab |
Title for y axis. |
type |
What type of plot should be drawn. Choosing between |
linetype |
The line type. See |
err.col |
Color of the error bars. |
err.width |
Width of the bars. |
Value
A ggplot2 object.
See Also
Plot using base R plot.cv.MonoClust()
Examples
library(cluster)
data(ruspini)
# 10-fold cross-validation
cptable <- cv.test(ruspini, minnodes = 2, maxnodes = 4)
ggcv(cptable)
[Package monoClust version 1.2.1 Index]