[英]How to separate graphs and then plot their on one graphical window?
I have three time series md1
, md2
, md3
, three ARIMA models f1
, f2
, f3
. 我有三个时间序列md1
, md2
, md3
,三个ARIMA模型f1
, f2
, f3
。 I'd like to plot AR- и МA-roots of ARIMA models in one graphical window. 我想在一个图形窗口中绘制ARIMA模型的AR-МA根。 I have tried: 我努力了:
library(forecast)
md1 <- runif(100, 0, 1)
md2 <- runif(100, 0, 1)
md3 <- runif(100, 0, 1)
f1<-arima(md1,order=c(1,1,0))
f2<-arima(md2,order=c(1,1,0))
f3<-arima(md3,order=c(2,1,2))
par(mfrow = c(1,3))
# AR- и МA-roots of ARIMA models
plot(f1) # one graph
plot(f2) # one graph
plot(f3) # two graphs
As the result, I see the last plot only, ie plot(f3)
. 结果,我只看到最后一个图,即plot(f3)
。 Of course, I can add the windows()
command 当然,我可以添加windows()
命令
plot(f2); windows()
and make a new graphical window for plot(f3)
. 并为plot(f3)
创建一个新的图形窗口。 Also, I have tried to change options of the par()
function, likes 另外,我试图更改par()
函数的选项,例如
par(mfrow = c(2,2))
and tried to create a new object 并尝试创建一个新对象
p3 <- plot(f3)
but expected result wasn't achieved. 但是没有达到预期的结果。
Question . 问题 。 How to separate two graphs generated by the plot(f3)
command? 如何分离plot(f3)
命令生成的两个图形?
Expected result: 预期结果:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.