I\'m trying to generate a plotly heatmap, where I\'d like the colors to be specified by a discrete scale.
Here\'s what I mean:
Gene
I was thinking initially the same thing, which is to down-sample the gradient, but instead forcing harsher transitions seems to do the trick at least to make the colors more pronounced.
interval.cols2 <- rep(interval.cols, each=1000)
plot_ly(z=mat,x=colnames(mat),y=rownames(mat),type="heatmap",colors=interval.cols2)