I am trying to build a 24 hours long time interval, by scale_x_continuous
:
ggplot() +
scale_x_continuous(breaks = seq(0, 24, by = 1)) +
geom_histogram(aes(x=df$h1), fill="red", color="red", alpha = 0.4, bins = 23) +
geom_histogram(aes(x=df$h2), fill="blue", color="blue", alpha = 0.4, bins=23)
but, so doing, I get the entire interval (0-24) concentrated on the first histogram's bin
. Why?