powered by
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, ... )
A cv.MonoClust object (output of cv.test()).
cv.MonoClust
cv.test()
Overall title for the plot.
Title for x axis.
Title for y axis.
What type of plot should be drawn. See graphics::par().
graphics::par()
The line type.
Color of the error bars.
Width of the bars.
Arguments to be passed to graphics::plot.default().
graphics::plot.default()
A line plot with error bars.
Plot using ggplot2 ggcv()
ggcv()
# NOT RUN { library(cluster) data(ruspini) # 10-fold cross-validation cptable <- cv.test(ruspini, minnodes = 2, maxnodes = 4) plot(cptable) # }
Run the code above in your browser using DataLab