I updated the planning package and now I have problems with my heatmap.
m <- matrix(rnorm(8), nrow = 4, ncol = 2)
plot_ly(
x = c("a", "b"), y = c("c", "d", "e", "f"),
z = m, type = "heatmap"
)
gives me an error:
Error: Variables must be length 1 or 4.
Problem variables: 'x'
Any idea on how to fix it? Adding blank tags did not help. The only solution that actually worked was to repeat the vector
x = c("a", "b", "a", "b")
or
x = c("a", "b", "b", "b")
However, I would like to have a more accurate solution, since with a large data set it can become messy.
source
share