Using ggplot I am able to stagger the x-axis labels using the scale_x_discrete function
library(tidyverse)
tibble(A = factor(LETTERS[1:5]), B = c(abs(rnorm(5)))) %>%
ggplot(aes(x=A, y=B))+
geom_bar(stat="identity")+
scale_x_discrete(guide = guide_axis(n.dodge = 2))
However, I wish to do the same programming in plotly within the R environment (ie. not using the ggplotly wrapper function). Does anyone have an idea what function I should use?


plotly.Rissues #989 & #2246