Bigger Title in Radarchart plot - R

放肆的年华 提交于 2020-01-24 01:12:07

问题


I'm using radarchart from fmsb to make a spyder plot. Anyone knows how to make the title bigger?

Here is the code

 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 ")
)

Caveat: i don't want to use ggradar package


回答1:


Is it the radarchart function from the package fmsb? If yes, you should be able to put cex.main = 3 or something inside 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
)

(See ?par)



来源:https://stackoverflow.com/questions/51445974/bigger-title-in-radarchart-plot-r

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!