问题 I want to plot a confusion matrix, but, I don't want to just use a heatmap, because I think they give poor numerical resolution. Instead, I want to also plot the frequency in the middle of the square. For instance, I like the output of this: library(mlearning); data("Glass", package = "mlbench") Glass$Type <- as.factor(paste("Glass", Glass$Type)) summary(glassLvq <- mlLvq(Type ~ ., data = Glass)); (glassConf <- confusion(predict(glassLvq, Glass, type = "class"), Glass$Type)) plot(glassConf) #