[英]Bigger Title in Radarchart plot - R
I'm using radarchart
from fmsb
to make a spyder plot. 我正在使用radarchart
的fmsb
绘制fmsb
图。 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 警告:我不想使用ggradar
包
Is it the radarchart
function from the package fmsb
? 难道是radarchart
从包装功能fmsb
? If yes, you should be able to put cex.main = 3
or something inside radarchart()
: 如果是,则应该可以将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
)
(See ?par
) (请参阅?par
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.