torakxkz
torakxkz

Reputation: 493

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

Upvotes: 3

Views: 2645

Answers (1)

Julius Vainora
Julius Vainora

Reputation: 48221

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

Upvotes: 3

Related Questions