plotly.R
plotly.R copied to clipboard
dynamicTicks = T does not respect position attribute in geom_point()
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
Anyone found a solution for this? I'm facing the same problem.
I'm still struggling with this problem. Does anyone know a fix?
I never found a fix for this but it would be greatly appreciated if someone knew a work around.