scale_binned
Transform continuous inputs before using it with a geom that requires discrete positions and then convert them with ggplotly
p <- ggplot(mtcars) + geom_bar(aes(mpg)) + scale_x_binned()
plotly::ggplotly(p)