Skip to content
Prev 275438 / 398503 Next

heatmap for plotting categorical matrix

not sure about gplots, but the one in base R should work well if you
specify the scaling method to be 'none':

heatmap(a4[1:40, ],  Rowv=NA, Colv=NA, col=c("grey", "blue", "purple",
"red"), scale='none')

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
On Mon, Oct 24, 2011 at 6:07 PM, Weiwei Shi <helprhelp at gmail.com> wrote: