The issue is because my effect data are non symmetrical around 0 (range -3 to 0.5) it ends up coloring things incorrectly where values of -0.5 end up being green. I only want green values to be above 0, so that it matches the same colors when this divergent color scheme is used for the functional effects heatmap. Would it be possible to modify the code in ValueToColorMap so that I can correctly apply my color map so the divergent color scale is correctly applied?
@WillHannon-MCB @jbloom I am trying to use
dmslogo
to apply a divergent color scale to a figure. Right now I am using this:The issue is because my effect data are non symmetrical around 0 (range -3 to 0.5) it ends up coloring things incorrectly where values of -0.5 end up being green. I only want green values to be above 0, so that it matches the same colors when this divergent color scheme is used for the functional effects heatmap. Would it be possible to modify the code in
ValueToColorMap
so that I can correctly apply my color map so the divergent color scale is correctly applied?