I am trying plot multiples control chart type EWMA in just a plot in software RStudio, using the function par, but, there aren't output error and the each controlchart is plotted in the same local graph, not in the different position.
par(mfrow=c(2,2),new=TRUE) q2 <- ewma(x2,center = 0, lambda=0.4,std.dev=0.57, nsigmas=3,add.stats='False') par(new=TRUE) q3 <- ewma(x3,center = 0, lambda=0.4,std.dev=0.57, nsigmas=3,add.stats='False') #par(new=TRUE) q4 <- ewma(x4,center = 0, lambda=0.4,std.dev=0.57, nsigmas=3,add.stats='False') #par(new=TRUE) q5 <- ewma(x5,center = 0, lambda=0.4,std.dev=0.57, nsigmas=3,add.stats='False')
I would like to plot four control chart in this plot, but, actually, each control chart is insert in the same position: