Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Custom z scale range for heatmap?


I’m looking for a way to manually set the range of z-axis values in a plotly heatmap.

My data has a few big outliers, which means the bulk of the data doesn’t get distinguished well in the heatmap. I’d like to add a sliderInput in Shiny to control the range - so that I can zoom in on the middle of the data and get more contrast there (and values outside of the range can just be left blank).

Is this possible with plotly? Or do I have to use ggplot?


UPDATE: I found zmin and zmax - now I’m wondering whether there’s a way to make Shiny sliderInputs logarithmic, although that is no longer a plotly question