Radarchart 图中更大的标题 - R
Bigger Title in Radarchart plot - R
我正在使用 fmsb
中的 radarchart
制作 spyder 图。
谁知道怎么把标题调大点?
这是代码
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
包
它是包 fmsb
中的 radarchart
函数吗?
如果是,您应该可以在 radarchart()
:
中放入 cex.main = 3
或其他内容
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
)
我正在使用 fmsb
中的 radarchart
制作 spyder 图。
谁知道怎么把标题调大点?
这是代码
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
包
它是包 fmsb
中的 radarchart
函数吗?
如果是,您应该可以在 radarchart()
:
cex.main = 3
或其他内容
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
)