luca-scr/qcc

qcc 3.0 - process capability analysis histogram

mattlitz opened this issue · 6 comments

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.

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

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)

it is not reproducible if df is not provided.

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

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

Yes that corrected the issue! Thank you so much!