Add more info to d3heatmap cell notes fetched from other columns.
0
0
Entering edit mode
6.9 years ago
arronar ▴ 290

Hi.

I'm creating a simple interactive heatmap (without any clustering) using the d3heatmap package. My initial table looks like the following

|Position|Target| Sequence |Sample.1|Sample.2|
|    2   |  S   | MSKLPRT  |    1   |   0.5  |
|    3   |  P   | KLPLPRT  |    0   |   0.5  |
|    6   |  K   | KLDIRKM  |   0.5  |    1   |

So until now I'm importing the matrix as matrix[ , 3:5] in the d3heatmap function and the cell note on mouse over has Sequence as Row and Sample.1/2 as column.

My question is if I can add the other's two columns data Position and Target inside the popup cell note.

Thanks

R • 975 views
ADD COMMENT

Login before adding your answer.

Traffic: 1586 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6