plot.AttrPlan | R Documentation |
Plots the Operating Characteristic (OC) curve for an attribute sampling plan object of class AttrPlan
.
## S3 method for class 'AttrPlan'
plot(x, pd = NULL, ...)
x |
An object of class |
pd |
Optional vector of proportions of nonconforming items. If |
... |
Additional graphical parameters passed to |
This method computes and visualizes the probability of acceptance (P(accept)
) as a function of the proportion of nonconforming items in the population, based on the attribute sampling plan.
The plot also includes reference lines at the plan's producer and consumer quality levels (PRQ
, CRQ
) and their corresponding acceptance probabilities.
A plot showing the OC curve for the given attribute sampling plan.
Ha Truong
optAttrPlan
, accProb
, OCdata
# Create attribute plan
plan <- optAttrPlan(PRQ = 0.01, CRQ = 0.1)
# Plot OC curve
plot(plan)
# With custom pd
plot(plan, pd = seq(0, 0.15, by = 0.001))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.