Learn R Programming

tolerance (version 3.0.0)

plotly_controltol: Plotting Tolerance Intervals for Control Charts

Description

Provides interactive control charts for tolerance bounds on continuous data.

Usage

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)

Value

plotly_controltol can return boxplots as well as corresponding tolerance intervals for any continuous data.

Arguments

tol.out

Output from any continuous tolerance interval procedure.

x

Data from a continuous distribution.

side

side = "two" produces plots for either the two-sided tolerance intervals or both one-sided tolerance intervals. This will be determined by the output in tol.out. side = "upper" produces plots showing the upper tolerance bounds. side = "lower" produces plots showing the lower tolerance bounds. Note that if the output of in tol.out shows 2-sided tolerance intervals, side = "upper" and side = "lower" still shows both upper AND lower tolerance intervals.

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.out shows 2-sided tolerance intervals.

tol.lwd

Width of the tolerance intervals when tol.out shows 2-sided tolerance intervals.

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.

References

Montgomery, D. C. (2005), Introduction to Statistical Quality Control, Fifth Edition, John Wiley & Sons, Inc.

See Also

plottol

Examples

Run this code
## 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")

Run the code above in your browser using DataLab