wp.plot | R Documentation |
wp.plot
produces a Weibull plot.
wp.plot(x, plot.it=TRUE, a, col.line="black", lty.line=1,
xlim=NULL, ylim=NULL, main=NULL, sub=NULL, xlab=NULL, ylab="Probability", ...)
x |
a numeric vector of data values. Missing values are allowed. |
plot.it |
logical. Should the result be plotted? |
a |
the offset fraction to be used; typically in (0,1). See |
col.line |
the color of the straight line. |
lty.line |
the line type of the straight line. |
xlim |
the x limits of the plot. |
ylim |
the y limits of the plot. |
main |
a main title for the plot, see also |
sub |
a sub title for the plot. |
xlab |
a label for the x axis, defaults to a description of x. |
ylab |
a label for the y axis, defaults to "Probability". |
... |
graphical parameters. |
The Weibull plot is based on taking the logarithm of the Weibull cumulative distribution function twice. The horizontal axis is logarithmic.
A list with the following components:
x |
The sorted data |
y |
log(-log(1-ppoints(n,a=a))) |
Chanseok Park
plot
, qqnorm
, qqplot
, iwp.plot
, ep.plot
.
bs.plot
for the Birnbaum-Saunders probability plot in package bsgof.
attach(Wdata)
wp.plot(bearings)
# With cosmetic lines
wp.plot(bearings, main="Weibull Plot", col.line="red",
xlab="Lifetimes of bearings", lty.line=1, pch=3)
hline = log(-log(1- c( (1:5)/100, (1:9)/10) ))
abline( h=hline, col=gray(0.1), lty=3, lwd=0.5 )
abline( v=seq(15, 200,by=5), col=gray(0.1), lty=3, lwd=0.5 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.