Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change font size Radar Plot plotly

Does anyone know how can I change the size of the font? I attached a plotly code example.

library(plotly)

p <- plot_ly(
type = 'scatterpolar',
r = c(39, 28, 8, 7, 28, 39),
theta = c('A','B','C', 'D', 'E', 'A'),
fill = 'toself'
) %>%
layout(
polar = list(
  radialaxis = list(
    visible = T,
    range = c(0,50)
  )
),
showlegend = F
)

I have tried things like: titlefont = list(size = 25), tickfont = list(size = 25) ra

like image 377
torakxkz Avatar asked Sep 22 '26 13:09

torakxkz


1 Answers

Using

polar = list(radialaxis = list(visible = TRUE, range = c(0, 50)),
             angularaxis = list(tickfont = list(size = 20))),

in the layout does the job:

enter image description here

like image 121
Julius Vainora Avatar answered Sep 24 '26 04:09

Julius Vainora