R/plot.cv.monoclust.R
plot.cv.MonoClust.Rd
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, ... )
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 |
A line plot with error bars.
Plot using ggplot2 ggcv()
# \donttest{ library(cluster) data(ruspini) # 10-fold cross-validation cptable <- cv.test(ruspini, minnodes = 2, maxnodes = 4) plot(cptable)# }