Hi!
I'm displaying a contingency table with heatmap():
> svm.predPix.tabla

svm.predPix CC DD LL NN NN2
        CC  22  0  3  8   3
        DD   0 27  0  1   0
        LL   1  1 90  3   7
        NN   2  0  1 11   4
        NN2  0  0  5  1  20


> heatmap(svm.predPix.tabla[5:1,], Rowv=NA, Colv=NA,col =
rev(heat.colors(32)), scale="column",  margins=c(5,10))

and I'm happy with the plot except that I would like to have the actual
values displayed within each cell.  Any help on how
to achieve this?

Data in
https://sites.google.com/site/openfiles2/home/svm.predPix.tabla.rda

Thanks,

Agus

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to