When I use ggplotly on a ggplot2 graph, some features of ggplot2 are reset.
Code example:
db <- iris
# Changing the N in one of the categories for the example:
db$Sepal.Length[1:40] <- NA
p <- db %>% ggplot(aes(Species, Sepal.Length)) +
geom_boxplot(varwidth = TRUE, outlier.shape = NA)
p
When using ggplotly(p) the varwidth option does not work, and the outlier shape of a circle returns. Is this an inherent quality of ggplolty? If so, how do I get these options in ggplotl2?
Thanks!