r语言绘图 一页多图问题

要求是:图形分为6个区域,每个区域画一个小图,用par(mfrow=...)
开头该怎么写?
par(mfrow=c(2,3))
之后还需要什么吗?

#例子:
attach(mtcars)
opar <- par(no.readonly=TRUE)
par(mfrow=c(3,2)) # 按行填充,3行2列,一共六个。
hist(wt)
hist(mpg)
hist(disp)
hist(wt)
hist(mpg)
hist(disp)
par(opar)
detach(mtcars)

##for more please use  help(par)     see  examples

图片如下:


温馨提示:答案为网友推荐,仅供参考
相似回答