stat_identity
The identity statistic leaves the data unchanged and then convert them with ggplotly.
p <- ggplot(mtcars, aes(wt, mpg)) p <- p + stat_identity()
plotly::ggplotly(p)