Open
Description
ggplotly
doesn't show lines created with minor_breaks
:
library(ggplot2)
library(plotly)
x <- seq(0, 3.5, by = 0.5)
y <- x * 0.95
df <- data.frame(x, y)
gg <- ggplot(df, aes(x, y)) + geom_point() +
scale_x_continuous(minor_breaks=seq(0, 3.5, 0.2))
gg # Vertical lines at intervals of 0.2
ggplotly(gg) # Vertical lines at even integers