R语言中barplot绘图设置不同分组之间的间距

 

001、

a <- sample(20:80,15)
a
b <- matrix(a,nrow=3)
b

par(mfrow = c(2, 1))
barplot(b,width=1,beside=T, space = c(0, 2), main = "xxx")
barplot(b,width=1,beside=T, space = c(0, 4), main = "yyy")

 

.

 

posted @ 2024-04-10 20:32  小鲨鱼2018  阅读(103)  评论(0)    收藏  举报