Learn R Programming

tolerance (version 3.0.0)

plotly_histtol: Plotting Histograms and Corresponding Tolerance Intervals for Continuous Data

Description

Provides interactive tolerance intervals for continous data based on its histogram.

Usage

plotly_histtol(tol.out, 
               x,  
               side = c("two","upper", "lower"), 
               x.lab = NULL,
               x.lab.size = NULL,
               x.tick.size = NULL,
               y.lab.size = NULL,
               y.tick.size = NULL,
               title = NULL,
               title.size = NULL,
               title.position.x = NULL,
               title.position.y = NULL,
               bin.col = NULL,
               tol.col = NULL,
               tol.lwd = NULL,
               tol.line.type = c("dash","dot","dashdot","solid"))

Value

plotly_histtol can return histograms 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.

x.tick.size

Size of tick marks on the x-axis.

y.lab.size

Size of label of the y-axis.

y.tick.size

Size of tick marks on the y-axis.

title

The main title on top of the histogram.

title.size

Size of the title.

title.position.x

Horizontal position of the title.

title.position.y

Vertical position of the title.

bin.col

Color of the bins.

tol.col

Color of the tolerance interval(s).

tol.lwd

Width of the tolerance interval(s).

tol.line.type

Line type of the tolerance interval(s).

References

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

See Also

plottol

Examples

Run this code
## 90%/90% 1-sided Weibull tolerance intervals for a sample
## of size 150.
set.seed(100)
x <- rweibull(150, 3, 75)
out <- exttol.int(x = x, alpha = 0.15, P = 0.90, dist = "Weibull" , side = 1)
out
plotly_histtol(out, x, side = "lower", x.lab = "Weibull Data" , tol.lwd = 3)

Run the code above in your browser using DataLab