Please add an reproducible example, so that we can see where it goes wrong. Maybe the error is raised by faulted data? Bart -- View this message in context: http://n4.nabble.com/problems-with-SPC-charts-in-R-tp1467901p1468441.html Sent from the R help mailing list archive at Nabble.com.