Is it possible to combine a ggplotly and a ggplot with patchwork?
Example
This displays the two plots side by side
library(ggplot2)
library(plotly)
library(patchwork)
a <- ggplot(data.frame(1), aes(X1)) + geom_bar()
b <- ggplot(data.frame(1), aes(X1)) + geom_bar()
a + b
But if we convert one to ggplotly, it errors
b <- ggplotly(b)
a + b
Error: Can't add `b` to a ggplot object.
Run `rlang::last_error()` to see where the error occurred.
Is there a way to work around this?