答案 0 :(得分:2)
这是所谓的蜘蛛网或雷达图。 Highcharts有一个很好的实现(https://www.highcharts.com/demo/polar-spider),您可以使用highcharteR
包:http://jkunst.com/highcharter/highcharts-api.html
答案 1 :(得分:1)
名称基本上是雷达图。
在R
中,您应该使用fmsb
包和radarchart
函数。
下面是一个示例:
library(fmsb)
data <- as.data.frame(matrix( sample( 2:20 , 10 , replace=T) , ncol=10))
colnames(data) <- c("math" , "english" , "biology" , "music" , "R-coding", "data-viz" , "french" , "physic", "statistic", "sport" )
data <- rbind(rep(20,10) , rep(0,10) , data)
radarchart( data , axistype=1 ,
pcol=rgb(0.2,0.5,0.5,0.9) , pfcol=rgb(0.2,0.5,0.5,0.5) , plwd=4 ,
cglcol="grey", cglty=1, axislabcol="grey", caxislabels=seq(0,20,5), cglwd=0.8,
vlcex=0.8)
如果要deep
您应该使用Python
代替plotly
。
import plotly.express as px
import pandas as pd
df = pd.DataFrame(dict(
r=[1, 5, 2, 2, 3],
theta=['processing cost','mechanical properties','chemical stability',
'thermal stability', 'device integration']))
fig = px.line_polar(df, r='r', theta='theta', line_close=True)
fig.show()
如果要deep
答案 2 :(得分:0)
这称为雷达(Excel具有此名称)/蜘蛛/多边形图表。您可以在python中使用一个名为radar的软件包。而且,您可以找到一种很棒的方法来使用python in this link自己绘制图像。
您只需要替换示例代码中的值