在'plotly'中,如何更改框架文本字体(size/angle等)

In 'plotly', how to change frame text font (size/angle etc.)

在 'plotly' 中,如何更改框架文本字体(size/angle 等)。谢谢!

library(tidyverse)
library(plotly)
p <- dplyr::starwars %>% ggplot(aes(x=height,y=mass,frame=skin_color))+
  geom_point()

ggplotly(p)

这是一个可能的自定义示例:

ggplotly(p) %>% 
  animation_slider(
    font = list(color = "red", size = 12, family = "sans serif"),
    tickcolor = "red"
  )

很遗憾,我无法旋转文本。
更多信息参见官方指南:

https://plotly.com/r/reference/layout/