Radarchart图中的更大标题-R [英] Bigger Title in Radarchart plot - R

查看:99
本文介绍了Radarchart图中的更大标题-R的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用fmsb中的radarchart进行间谍图绘制. 有谁知道如何扩大标题?

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

这是代码

 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软件包

Caveat: i don't want to use ggradar package

推荐答案

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

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
)

(请参阅?par)

这篇关于Radarchart图中的更大标题-R的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆