plot.cv.MonoClust {monoClust} | R Documentation |
Plot the Mean Square Error with Error Bar for +/- 1 Standard Error
Description
Plot the Mean Square Error with Error Bar for +/- 1 Standard Error
Usage
## 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 |
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 |
lty |
The line type. |
err.col |
Color of the error bars. |
err.width |
Width of the bars. |
... |
Arguments to be passed to |
Value
A line plot with error bars.
See Also
Plot using ggplot2 ggcv()
Examples
library(cluster)
data(ruspini)
# 10-fold cross-validation
cptable <- cv.test(ruspini, minnodes = 2, maxnodes = 4)
plot(cptable)
[Package monoClust version 1.2.1 Index]