The qcc and qicharts2 packages have functions that allow you to directly construct a graph and analyze it. If a point goes beyond the control borders or is subject to some definite dependence, then it is highlighted in red. (As in the picture) enter image description here

I do not need a graph, but the values ​​of these points are needed. Is it possible to get them somehow separately from the schedule?

  • Give a sample code with which you get graphics. - Artem Klevtsov

1 answer 1

I do not need a graph, but the values ​​of these points are needed. Is it possible to get them somehow separately from the schedule?

their? - yes you can


# https://cran.r-project.org/web/packages/qcc/vignettes/qcc_a_quick_tour.html # Between and within sample extra variation library(qcc) mu = 100 sigma_W = 10 epsilon = rnorm(120, sd=0.3) W = c(-4, 0, 1, 2, 4, 2, 0, -2) # assumed workers cycle W = rep(rep(W, rep(5,8)), 3) x = mu + W + sigma_W*epsilon x = matrix(x, ncol=5, byrow=TRUE) q = qcc(x, type="xbar") # # summary(q) # with(q,summary(limits)) # # print(q) # with(q,print(limits)) # # with(q,summary(data)) # with(q,summary(violations)) # print(q$violations) print(q$violations$beyond.limits)#[1] 5 1 9 17 limitKeys = q$violations$beyond.limits data = q$data # print(limitKeys) # print(data) # print(as.vector(t(data))) # print(length(data)) for(i in 1:length(limitKeys)){ key = limitKeys[i] print(paste('--index',i,'key',key)) arr = data[key,] print(arr) } 

enter image description here


Useful features

  • Thanks, that is necessary! Only now it is a little incomprehensible is the function checking for other criteria besides going beyond the control limits? For example, if 9 consecutive points in zone C? - Peter