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
It seems that ggplotly cannot handle dashed or dotted grid lines. They always default to solid grid lines.
No matter whether I am specifying the general option panel.grid or a specific one like panel.grid.major.y, they always become solid with ggplotly.
library(ggplot2)
library(plotly)
# Dotted and dashed grid lines appear with ggplot2p<- ggplot(mtcars, aes(disp, mpg)) +
geom_point() +
theme(panel.grid= element_line(colour="red",
linetype="dotted")) # same issue if "dashed"p# However, with ggplotly they become solid
ggplotly(p)
The text was updated successfully, but these errors were encountered:
It seems that ggplotly cannot handle dashed or dotted grid lines. They always default to solid grid lines.
No matter whether I am specifying the general option
panel.grid
or a specific one likepanel.grid.major.y
, they always become solid with ggplotly.The text was updated successfully, but these errors were encountered: