You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found something unexpected when attempting to visualize a continuous variable as row_side_colors:
library(heatmaply)
mat <- matrix(rnorm(1000), #generate data
ncol=10)
heatmaply(mat,
row_side_colors = c(-50:49), #some easy continuous values to be annotated
Rowv = FALSE)
The mouseover text reveals that the labels are neatly ordered from -50 on the top to 49 on the very bottom. However, the colors seem not in order, there is a hue break between -10 and -9 and then again between -1 and 0 and finally between 9 and 10.
Wouldn't there be a way to tell heatmaply that this is a continous variable?
The text was updated successfully, but these errors were encountered:
Due to how plotly handles heatmaps we don't really support continuous variables in the side colours at present. Unfortunately I'd have to suggest binning them
Hi,
Thanks for implementing and such a great package!
I found something unexpected when attempting to visualize a continuous variable as row_side_colors:
The mouseover text reveals that the labels are neatly ordered from -50 on the top to 49 on the very bottom. However, the colors seem not in order, there is a hue break between -10 and -9 and then again between -1 and 0 and finally between 9 and 10.
Wouldn't there be a way to tell
heatmaply
that this is a continous variable?The text was updated successfully, but these errors were encountered: