# ------------------------------------------------------------------------
#' @rdname qplot_confusion
#' @export
plot_confusion2 <- function(Prediction, Reference,...){
if (length(Prediction) != length(Reference)) {
stop("Lengths of vectors `Prediction` and `Reference` must be equal.")
}
conf <- table(Prediction,Reference)
qplot_confusion(conf = conf, ...)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.