[Rd] bug in heatmap?

Ross Boylan ross at biostat.ucsf.edu
Fri Nov 6 01:38:30 CET 2009


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



More information about the R-devel mailing list