You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Last time when trying to convert ggplot object into plotly I met the following bug.
When specifying labels in scale_x_continuous for original ggplot object and then converting it to plotly with ggplotly the tick labels are moved one tick to the right.
Original ggplot:
library(ggplot2)
library(plotly)
p <- ggplot(data = mtcars, aes(x = qsec, y = disp)) +
geom_point() +
scale_x_continuous(
breaks = pretty(range(mtcars$qsec), n = 10),
labels = pretty(range(mtcars$qsec), n = 10)
)
p
The text was updated successfully, but these errors were encountered:
krystian8207
changed the title
ggplotly rewrites axis labels (scpecified in scale_x_continuous) incorrectly
ggplotly rewrites axis tick labels (scpecified in scale_x_continuous) incorrectly
Mar 11, 2020
krystian8207
changed the title
ggplotly rewrites axis tick labels (scpecified in scale_x_continuous) incorrectly
ggplotly rewrites axis tick labels (specified in scale_x_continuous) incorrectly
Mar 11, 2020
Hi! Thank you for the great package!
Last time when trying to convert ggplot object into plotly I met the following bug.
When specifying
labels
inscale_x_continuous
for original ggplot object and then converting it to plotly withggplotly
the tick labels are moved one tick to the right.Original ggplot:
Plotly version:
SessionInfo:
The text was updated successfully, but these errors were encountered: