talgalili / d3heatmap

A D3.js-based heatmap htmlwidget for R
Other
236 stars 95 forks source link

Plotting NA values #38

Open eacton opened 9 years ago

eacton commented 9 years ago

Hi! I really like the interactivity of d3heatmap! I have a data matrix that has NA values. When there is a mix of data and NA values, the NAs are plotted in a solid colour and say NULL. This is what I want. However, I am reordering by rows only and not columns. If the my first column is NA (but has data after it), then I can't get a plot. I also can't get a plot if the entire row is NA. Preferably I would like the former case (NAs then data) to plot, as well as a solid colour as above for a row of NAs/no data. But I would settle for just the first case working! Any suggestions?

mkuhn commented 8 years ago

I have added a pull request (#58) that adds a parameter for the NA color. If you have a full row or column of NAs, the clustering function might not like that and give you an error.