How to write a text into plotly heat map in r?
问题 Hello I make a heat map with plotly . The code is: plot_ly(z = ~df$MonetaryClass, x = ~df$RecencyClass, y = ~df$FrequencyClass, type = "heatmap") %>% colorbar(title = 'Monetary Class', limits = c(1,5), tickmode = 'array', tickvals = c(1,2,3,4,5)) %>% layout(title = "RFM Analyse", xaxis = list(title = 'Recency Class', tickmode = 'array', tickvals = c(1, 2,3,4,5), ticktext = c(1, 2, 3, 4, 5) ), yaxis = list(title = 'Frequency Class', tickmode = 'array', tickvals = c(1, 2,3,4,5), ticktext = c(1,