更改字体大小雷达图 plotly
Change font size Radar Plot plotly
有谁知道如何更改字体大小?我附上了一个情节代码示例。
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
)
我试过类似的东西:titlefont = list(size = 25), tickfont = list(size = 25)
正在使用
polar = list(radialaxis = list(visible = TRUE, range = c(0, 50)),
angularaxis = list(tickfont = list(size = 20))),
在布局中完成工作:
有谁知道如何更改字体大小?我附上了一个情节代码示例。
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
)
我试过类似的东西:titlefont = list(size = 25), tickfont = list(size = 25)
正在使用
polar = list(radialaxis = list(visible = TRUE, range = c(0, 50)),
angularaxis = list(tickfont = list(size = 20))),
在布局中完成工作: