Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
有几种方法。最方便的是布局。 ?layout 了解更多详细信息
?layout
r<-lm(y~x1+x2) layout(matrix(1:4,2,2)) plot(r)
将生成一个包含四个图的窗口。
A few ways. The most convenient is layout. ?layout for more details
will produce a window with four plots.
您可以使用以下行:
par(mfrow=c(2,2))
before
plot(r)
以这种方式对 R 说在同一帧中显示 4 张图片。您还可以设置 4,1 使 4 个图表一个在另一个之上,或设置 1,4 让 4 个图表一个在另一个的一侧。
You could use the line:
In that way you say to R to show 4 pictures at the same frame. You can also set 4,1 to have 4 graphs one above the other, or 1,4 to have 4 graphs one on the side of the other.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
有几种方法。最方便的是布局。
?layout
了解更多详细信息将生成一个包含四个图的窗口。
A few ways. The most convenient is layout.
?layout
for more detailswill produce a window with four plots.
您可以使用以下行:
before
以这种方式对 R 说在同一帧中显示 4 张图片。您还可以设置 4,1 使 4 个图表一个在另一个之上,或设置 1,4 让 4 个图表一个在另一个的一侧。
You could use the line:
before
In that way you say to R to show 4 pictures at the same frame. You can also set 4,1 to have 4 graphs one above the other, or 1,4 to have 4 graphs one on the side of the other.