In a subplot with 2 colormaps, the colorbars are positioned to the right of the plot.
Code:
z1 <- matrix(rexp(200, rate=.1), ncol=20)
z2 <- matrix(rexp(200, rate=.1), ncol=20)
p <- subplot(
plot_ly(z = z1, type = "heatmap"),
plot_ly(z = z2, type = "heatmap"),
margin = 0.1
) %>% embed_notebook(width = 1000, height = 450)
In a subplot with 2 colormaps, the colorbars are positioned to the right of the plot.
Code: