[R] problems with SPC charts in R
Peter Ehlers
ehlers at ucalgary.ca
Thu Feb 4 13:48:28 CET 2010
I suspect that you may have set qcc.options("cex") to
too large a value. Try lowering it with
qcc.options(cex=whatever)
-Peter Ehlers
vikrant wrote:
> ok. I will give the example for which i m getting this error. The data for
> plotting R chart and S chart is very huge. SO i will take example for
> plotting C chart.
> Data is a follows :-
> sample D size trial
> 1 11 1000 TRUE
> 2 11 1000 TRUE
> 3 13 1000 TRUE
> 4 11 1000 TRUE
> 5 14 1000 TRUE
> 6 12 1000 TRUE
> 7 17 1000 TRUE
> 8 7 1000 TRUE
> 9 7 1000 TRUE
> 10 6 1000 TRUE
> 11 9 1000 TRUE
> 12 3 1000 TRUE
> 13 2 1000 TRUE
> 14 4 1000 TRUE
> 15 13 1000 TRUE
> 16 11 1000 TRUE
> 17 7 1000 TRUE
> 18 11 1000 TRUE
> 19 8 1000 TRUE
> 20 5 1000 TRUE
> 21 37 1000 TRUE
> 22 11 1000 TRUE
> 23 9 1000 TRUE
> 24 4 1000 TRUE
> 25 7 1000 TRUE
> 26 4 1000 TRUE
> 27 17 1000 TRUE
> 28 11 1000 TRUE
> 29 18 1000 TRUE
> 30 21 1000 TRUE
> 31 18 1000 TRUE
> 32 19 1000 TRUE
> 33 12 1000 TRUE
> 34 11 1000 TRUE
> 35 13 1000 TRUE
>
> Here my sample size is 1000 for each sample no.
> 1st column corresponds to sample no.
> 2nd column corresponds to no. of defects
> 3rd column corresponds to sample size
> 4th column , I have kept asTRUE because I want to consider whole data for
> calculating the control limits.
> The code which i use is as follows :-
>
> library(qcc)
> y<-read.table("Defect_data_2008.csv",sep=",",header=TRUE)
> attach(y)
> obj<-qcc(D[trial],sizes=size[trial],type="c")
> But while plotting C chart I am getitng following error
> Error in plot.new() : figure margins too large
>
>
> For plotting the pchart if I just change the type="p" then it is plotting
> correctly without error.
>
>
--
Peter Ehlers
University of Calgary
More information about the R-help
mailing list