Skip to content

ggplotly doesn't show minor_breaks #952

Open
@kent37

Description

@kent37

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

image
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions