plots the misclassification error rate versus number of neighbors based on call to knn_cv
# S3 method for knn_cv
plot(x, ...)
No return value, called for side effects of creating plot.
object of class knn_cv.
additional arguments. currently not used.
John Kloke
The list x is assumed to have attributes kvec and error representing the number of neighbors and the corresponding misclassification rate, respectively.
Hastie, T., Tibshiani, R., and Friedman, J. (2017), The Elements of Statistical Learning: Data Mining, Inference, and Prediction, Second Edition, New York: Springer.
James, G., Witten, D., Hastie, T., and Tibshirani, R. (2013), An Introduction to Statistical Learning with Applications in R, New York: Springer.
Venables, W. N. and Ripley, B. D. (2002) _Modern Applied Statistics with S._ Fourth edition. Springer.
knn_cv