[Rd] bug in heatmap?

From: Ross Boylan <ross_at_biostat.ucsf.edu>
Date: Thu, 05 Nov 2009 16:38:30 -0800


Using R 2.10 on WinXP

    heatmap(mymap, Rowv=NA, Colv=NA)
with mymap values of

     0 1 2 3 4

0  NaN 0.000000000 0.00621118 0.0000000 NaN
1    0 0.000000000 0.01041667 0.1250000 NaN
2    0 0.004705882 0.02105263 0.3333333 NaN
3    0 0.004081633 0.02222222 0.5000000   0
4    0 0.000000000 0.01923077 0.1666667 NaN
6    0 0.000000000 0.00000000 0.0000000 NaN
10   0 0.002840909 0.00000000 0.0000000 NaN
20   0 0.002159827 0.00000000       NaN NaN
40 NaN 0.009433962 0.00000000       NaN NaN
(the first row and column are labels, not data) produces a plot in which all of the row labelled 6 (all 0's and NaN) is white. This is the same color showing for the NaN values.

In contrast, all other 0 values appear as dark red.

Have I missed some subtlety, or is this a bug?

Ross Boylan



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 06 Nov 2009 - 00:42:48 GMT

This archive was generated by hypermail 2.2.0 : Fri 06 Nov 2009 - 16:50:21 GMT