簡體   English   中英

如何在corrplot的標簽中的R中更改標簽的字體大小?

[英]How can I change the font size of the labels in corrplot's lengend, in R?

我想將1到-1標簽的大小更改為對corrplot的調用旁邊出現的比例,但是不確定要傳遞什么參數來完成此操作。

一個示例調用看起來像

corrplot(data, method="pie", cex=2)

就我而言,一些不可行的合理猜測包括:

cex=2 (errors/warnings, no effect)
cex.xlab=2 (errors/warnings, no effect)
cex.legend=2 (errors/warnings, no effect)
cex.axis=2 (sets axis labels of main plot 2x size, no effect on legend text)

我認為您正在尋找tl.cex:

df <- data.frame(x = rnorm(10), y = rnorm(10), z = rnorm(10))

library(corrplot)
z <- corrplot(cor(df), method = "pie", tl.cex=4)

看來corrplot()中的許多選項都是用tl *設置的,例如tl.col表示顏色等。

按照@ulfelder的答案,用於控制音階的參數由cl.x而不是tl.x給出。

cl.cex = 2完全滿足需要。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM