#' @export
plot_CV <- function(CV_errors_K) {
plot(rowMeans(CV_errors_K), typ='l', lty=1)
Ks <- dim(CV_errors_K)[2]
for (k in 1:Ks) {
lines(CV_errors_K[, k], lty=3)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.