# 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)
1条答案
按热度按时间iaqfqrcu1#
beanplot
函数使用base图形系统。这意味着您可以使用par
函数修改所有图形参数。