plotly_controltol | R Documentation |
Provides interactive control charts for tolerance bounds on continuous data.
plotly_controltol(tol.out ,
x ,
side = c("two","upper", "lower"),
x.lab = NULL,
x.lab.size = NULL,
y.lab = NULL,
y.lab.size = NULL,
x.tick.size = NULL,
y.tick.size = NULL,
x.col = NULL,
x.cex = NULL,
fit.col = NULL,
fit.lwd = NULL,
fit.line.type = c("solid","dash","dot","dashdot"),
tol.col = NULL,
tol.lwd = NULL,
tol.line.type = c("dash","dot","dashdot","solid"),
title.position.x = NULL,
title.position.y = NULL,
title.size = NULL,
title = NULL)
tol.out |
Output from any continuous tolerance interval procedure. |
x |
Data from a continuous distribution. |
side |
|
x.lab |
Label of the x-axis. |
x.lab.size |
Size of label of the x-axis. |
y.lab |
Label of the y-axis. |
y.lab.size |
Size of label of the y-axis. |
x.tick.size |
Size of tick marks on the x-axis. |
y.tick.size |
Size of tick marks on the y-axis. |
x.col |
Color of original data points. |
x.cex |
Size of original data points. |
fit.col |
Color of fitted line. |
fit.lwd |
Width of fitted line. |
fit.line.type |
Type of the fitted line. |
tol.col |
Color of the tolerance intervals when |
tol.lwd |
Width of the tolerance intervals when |
tol.line.type |
Line type of tolerance intervals. |
title |
The main title on top of the plot. |
title.size |
Size of the title. |
title.position.x |
Horizontal position of the title. |
title.position.y |
Vertical position of the title. |
plotly_controltol
can return boxplots as well as corresponding tolerance intervals for any continuous data.
Montgomery, D. C. (2005), Introduction to Statistical Quality Control, Fifth Edition, John Wiley & Sons, Inc.
plottol
## 95%/85% 2-sided Bayesian normal tolerance limits for
## a sample of size 100.
set.seed(100)
x <- rnorm(100)
out <- bayesnormtol.int(x = x, alpha = 0.05, P = 0.85,
side = 2, method = "EXACT",
hyper.par = list(mu.0 = 0,
sig2.0 = 1, n.0 = 10, m.0 = 10))
out
plotly_controltol(out, x, x.lab = "Normal Data")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.