The Wayback Machine - https://web.archive.org/web/20201217175251/https://github.com/ropensci/plotly/issues/1886
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamicTicks = T does not respect position attribute in geom_point() #1886

Open
andrew-fuller opened this issue Nov 17, 2020 · 0 comments
Open

dynamicTicks = T does not respect position attribute in geom_point() #1886

andrew-fuller opened this issue Nov 17, 2020 · 0 comments

Comments

@andrew-fuller
Copy link

@andrew-fuller andrew-fuller commented Nov 17, 2020

I would like to use the dynamic ticks option with my plots in shiny although I am running into an issue with my plots that use a discrete x axis.

Plots appear as they should with dynamicTicks = F, however, after setting to TRUE the position = argument doesn't seem to be respected.

Furthermore, I notice that when using plotly_json() that some of the data items seem to go missing.

Any help with this issue would be much appreciated.

library(tidyverse)
library(plotly)

g <- mtcars %>%
  ggplot(aes(fill = as_factor(carb))) +
  geom_point(aes(x = as_factor(cyl), y = mpg), position = position_dodge(width = 0.5))

p <- ggplotly(dynamicTicks = T)

p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.