Radarchart图中的更大标题-R

时间:2018-07-20 15:34:12

标签: r radar-chart

我正在使用radarchart中的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 , 

            #custom polygon
            pcol=rgb(0.2,0.5,0.5,0.9) , pfcol=rgb(0.2,0.5,0.5,0.5) , plwd=1 , 

            #custom the grid
            cglcol="gray48", cglty=1.1, axislabcol="gray48", caxislabels=seq(0,1,5), cglwd=0.9,

            #custom labels
            vlcex=0.8,title=paste("Cluster 1 ")
)

注意:我不想使用ggradar软件包

1 个答案:

答案 0 :(得分:2)

是软件包radarchart中的fmsb函数吗? 如果是,则应该可以将cex.main = 3或其他内容放入radarchart()

radarchart( data  , axistype=1 , 

            #custom polygon
            pcol=rgb(0.2,0.5,0.5,0.9) , pfcol=rgb(0.2,0.5,0.5,0.5) , plwd=1 , 

            #custom the grid
            cglcol="gray48", cglty=1.1, axislabcol="gray48", caxislabels=seq(0,1,5), cglwd=0.9,

            #custom labels
            vlcex=0.8,title=paste("Cluster 1 "),

            cex.main = 3
)

(请参见?par