Place legend at specific heatmap.2 column and row in r -


is possible place legend @ specific column & row in heatmap.2?

i.e.

> mymatrix = matrix(0,2,2) > mymatrix      [,1] [,2] [1,]    0    0 [2,]    0    0  heatmap.2(mymatrix, col=bluered, rowv = false, trace="none", colv = false, main="legend positioning") 

i'd mark circle, via legend, @ mymatrix[2,2] in heatmap.2

solved. have decided make matrix marks specific coordinate , note matrix in heatmap.2

mymatrix = matrix(0,2,2) note.matrix = matrix(,2,2) note.matrix[2,2] = "|" mymatrix [,1] [,2] [1,] 0 0 [2,] 0 0

note.matrix [,1] [,2] [1,] na na
[2,] na "|"

heatmap.2(mymatrix,cellnote=note.matrix,notecol="black")

images heatmap, column 2 + row 2 marked |. if there more convenient way, let me know


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -