When I use ggplotly() to transform a ggplot histogram into a dynamic plot, the hover bring, I assume, the middle point of the interval. This is not intuitive for my public. I need it to display the interval. Ex: [x, y) or something like that. How can i do this?
Here an simple example with the Iris Data Set.
library(tidyverse)
library(plotly)
iris %>%
ggplot(
aes(
x = Sepal.Length
)
) +
geom_histogram() -> p
ggplotly(p)
Maybe other thing: when I am creating a ggplot2 histogram, I know I can control the number of bins and the size of bins. Is there a way to have even more control, maybe setting everything in manual?
Thanks in advance and sorry for the bad English!