R script for generating confusion matrix heatmaps