luca-scr / qcc

An R package for Quality Control Charts
https://luca-scr.github.io/qcc/
43 stars 17 forks source link

qcc 3.0 - process capability analysis histogram #37

Closed mattlitz closed 1 year ago

mattlitz commented 2 years ago

Started testing qcc 3.0 and am very impressed! Did find one issue: the histogram bars in the new process capability analysis chart (using ggplot2) have been extending over the edges of the white plot area (for example: extending over the y-axis). This occurs in both the R GUI and RStudio.

luca-scr commented 2 years ago

Hi, glad you find it useful. Can you provide a minimal reproducible example so I can check and fix what looks like a bug?

mattlitz commented 2 years ago

obs <- 1:50 data <- rnorm(50, mean=5, sd=4) df <- data.frame(obs,data)

q1 <- qcc(df$data, type = "xbar.one", limits = c(4,6)) pc <- processCapability(q1, spec.limits = c(3,7)) plot(pc)

luca-scr commented 2 years ago

it is not reproducible if df is not provided.

mattlitz commented 2 years ago

OK I've updated the code! The overlap appears to occur with small datasets (~50)

luca-scr commented 2 years ago

I have uploaded an updated version that should solve the issue.

mattlitz commented 1 year ago

Yes that corrected the issue! Thank you so much!