I am new to plotly but I am trying to create a clustered column bar chart, that looks something like this, where I can hover over and see the values:
To make this in plotly, here is what I have so far, but I'm not sure how to proceed in order to get the desired output shown above (which is just made from base barplot):
A <- c(.32, 1.89, 12.9, 51.85, 29.96)
B <- c(1.06, 2.65, 21.27, 47.34, 27.65)
C <- c(.96, 3.85, 18.32, 51.44, 25.401)
matrixValueData <- as.data.frame(rbind(A, B, C))
plotly::plot_ly(matrixValueData, x = colnames(matrixValueData), y = A, type = 'bar')
Any help appreciated! Thanks!