I would like to use customdata to display additional information on mouse-over on a heatmap.
Does anyone know how to do this?
My code just says undefined with this example:
library(plotly)
plot_ly(
z=matrix(1:100, nrow=100, ncol=100),
type="heatmap" ,
customdata=1:100,
hovertemplate="x: %{x}\ny: %{y}\nz: %{z}\n%{customdata}<extra></extra>"
) %>%
layout(yaxis=list(scaleanchor="x"))
