This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Add more info to d3heatmap cell notes fetched from other columns.

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

0 answers

No answers yet.

Log in to answer this question.