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
Is it possible to reverse the color scale in one-color gradients so that the darker color correspond to the to lower values and lighter colors correspond to greater values?
The text was updated successfully, but these errors were encountered:
This is possible, albeit a bit clunky at the moment. The colors argument to functions like main_heatmap and iheatmap can take in a vector of colors instead of a palette name. So you can do something like:
mat<-matrix(rnorm(20), ncol=5, nrow=4)
main_heatmap(mat, colors= rev(RColorBrewer::brewer.pal(3,"Reds")))
# Can change 3 to higher number # rev function reverses order of the colors# colors argument also works for iheatmap function
I'll keep this issue open as a note to either:
Add more to docs to explain this possibility
Possibly add something like a reverse_colorscale option in future
Is it possible to reverse the color scale in one-color gradients so that the darker color correspond to the to lower values and lighter colors correspond to greater values?
The text was updated successfully, but these errors were encountered: