SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: Help printing multiple SPC charts on a page ... [ Reply ]
By: Bill Saands on 2017-08-23 14:59
[forum:45280]
Fixed it ... I needed to set restore.par=FALSE in the qcc call to keep it from resetting the par values after creating the object.

Help printing multiple SPC charts on a page ... [ Reply ]
By: Bill Saands on 2017-08-23 14:20
[forum:45279]
I am relatively new to R, but I have been programming in other languages for more than 3 decades. I am having a tough time getting the QCC library plots (SPC charts for my process) to plot 2 to a page like they traditionally do.

I have tried:

library(qcc)
attach(mtcars)
par(mfrow=c(2,1))
hist(wt)
hist(mpg)

and this prints two plots, one above the other, on a page, just like I would expect.

But when I use

library(qcc)
attach(mtcars)
par(mfrow=c(2,1))
my.xmr.x <- qcc(wt, type = "xbar.one", plot = TRUE)
my.xmr.x <- qcc(mpg, type = "xbar.one", plot = TRUE)

I get two plots, but one per page - on the screen device, only the mpg plot shows, but they were both generated.

I must be missing something simple, but how can I get the qcc plots to work like the regular R plots???

Thanks in advance!

Thanks to:
Vienna University of Economics and Business Powered By FusionForge