plotly.R
plotly.R copied to clipboard
Can only have one: config
Brief description of the problem: In the subplot function, if I input a mix of ggplot2 object and plotly object, I got 'Warning message: Can only have one: config'. How to fix the warning? Below is an example.
library(plotly); library(ggplot2)
g <- ggplot(diamonds, aes(x=carat, y=price, color=cut)) + geom_point()
p <- plot_ly(z = volcano, type = "heatmap")
subplot(ggplotly(g), plot_ly(type="heatmap"), p, nrows=2, shareX=TRUE, shareY=TRUE)
Any developments on this? What exactly is it trying to say. I am trying to solve exactly the same problem. Thanks