When using facet_grid()
in both rows and columns, with a histogram in ggplotly, the x-axis values turn up as NA in the hover text. This doesn’t happen if the faceting is only over rows, only over columns, or if the geom is different e.g. geom_point()
. Am I doing something wrong?
Minimal working example:
library(ggplot2)
library(plotly)
data(iris)
ggplotly(
ggplot(data = iris,
aes(x = Petal.Length))+
geom_histogram()+
facet_grid(Species~round(Sepal.Length))
)