Home:ALL Converter>Multiple control chart EWMA RStudio

Multiple control chart EWMA RStudio

Ask Time:2020-06-23T03:52:54         Author:Guilherme Lopes de Campos

Json Formatter

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:

enter image description here

Author:Guilherme Lopes de Campos,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/62522446/multiple-control-chart-ewma-rstudio
yy