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

Time:11-05

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

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

ggplotly(p)

enter image description here

CodePudding user response:

here is an example of possible customization:

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

unfortunately I was unable to rotate the text.
For more information, see the official guide:

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

  • Related