R/heatmap_ly.R
heatmap_ly.Rd
The function for dynamically plotting (ggplot) the heatmap to evaluate the sampling plan based on a general lower and/or upper specification limits.
heatmap_ly(attr.name, attr.unit, Llim, Ulim, mu, sigma, n, test.point, dynamic)
attr.name | (optional) user-defined attribute name for sampling plan assessment |
---|---|
attr.unit | (optional) user-defined attribute unit |
Llim | lower specification limit |
Ulim | upper specification limit |
mu | hypothetical mean of the attribute |
sigma | hypothetical standard deviation of the attribute |
n | sample size (number of locations) per batch |
test.point | (optional) actual process data points for testing whether the processes pass PPQ |
dynamic | logical; if |
A Plain or Dynamic Heatmap for Sampling Plan Assessment.
Burdick, R. K., LeBlond, D. J., Pfahler, L. B., Quiroz, J., Sidor, L., Vukovinsky, K., & Zhang, L. (2017). Statistical Applications for Chemistry, Manufacturing and Controls (CMC) in the Pharmaceutical Industry. Springer.
pp
and PPQ.occurve
.
Yalin Zhu
if (FALSE) { heatmap_ly(attr.name = "Thickness", attr.unit = "%",Llim = -0.2, Ulim = 0.2, mu = seq(-0.2, 0.2, 0.001), sigma = seq(0,0.2, 0.001), test.point=data.frame(c(0.1,-0.05),c(0.15,0.05)), n=2, dynamic = T) }