I am new to plotly
. I'm wondering how I could add a slider control to a heat map colour bar that allows the user to only show tiles that are of a specific value/colour? Any tips would be appreciated. Thank you.
library(plotly)
p <- plot_ly(z = volcano, type = "heatmap")
As of the current version of plotly
(version 4.7.x), there is no way to customize the color bar such that the output plot reacts to it (let alone show specific value of it). There is that rangeslider()
function, which adds a slider but that doesn't do what you want.
library(plotly)
p <- plot_ly(z = volcano, type = "heatmap")
rangeslider(p)
I almost feel bad for posting an answer that says "as of yet, it's not possible" but I've actually got in touch with Plotly via email on a very similar issue and the answer from support in regarding to this issue is a "no; not yet."