[英](R) Changing size of xlab, ylab, and title in beanplot function from package beanplot
我想問一下如何從 beanplot 包中更改 beanplot 函數中 xlab、ylab 和標題的大小,因為我找不到特定的參數。
提前致謝
我找不到任何參數來更改 beanplot 中文本的大小
beanplot
函數使用基本圖形系統。 這意味着您可以使用par
函數修改所有圖形參數。
# Save graphics parameters, setup 1x2 figure for the next plot
opar <- par(mfrow = c(1,2), cex.lab=1, cex.main=1)
beanplot(rnorm(22), rnorm(22), rnorm(22), main="Test!", rnorm(3), xlab="X-label")
# Change the size of the title and x-axis label
par(cex.lab=2, cex.main=3)
beanplot(rnorm(22), rnorm(22), rnorm(22), main="Test!", rnorm(3), xlab="X-label (x2)")
# Return to the previous state
par(opar)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.