【发布时间】:2021-02-02 18:27:46
【问题描述】:
我想更改以下 plotly 雷达图的颜色,以及删除轴标签 中的 -0.2 此图由以下代码生成:
fig <- plot_ly(
type = 'scatterpolar',
fill = 'toself'
)
fig <- fig %>%
add_trace(
r = as.numeric(threats.mod["Country avg.", ]),
theta = threat.labs,
name = 'Country Avg.'
) %>%
add_trace(
r = as.numeric(threats.mod["Selection", ]),
theta = threat.labs,
name = 'Selection'
) %>%
layout(
polar = list(
radialaxis = list(
visible = T,
range = c(-0.2,1)
)
)
)
fig
【问题讨论】:
-
制作从-0.2开始的雷达图真的有意义吗?
-
这是一个绘图设备,可以产生与具有空核心的radarplot相似的图形结果。 r-graph-gallery.com/142-basic-radar-chart.html