I have created a ggplotly facet-wrap in ggplot2 (image below). For some reason modifying the theme does not do the increase the space between the axis labels and the axis numbers...is there a higher order parameter where that is configurated for ggplotly facet-wrap?.
Modifying this line does not change the spacing in the y axis
theme(axis.title.y = element_text(margin = unit(c(10, 10, 10, 10), "mm")))
here is a reproducible example:
p=ggplot(mpg, aes(displ, hwy)) +
geom_point() +
facet_wrap(vars(class))+
theme(axis.title.y = element_text(margin = unit(c(100, 0, 0, 0), "mm")))
ggplotly(p)