weilines: Add Lines onto a Weibull Plot

Description Usage Arguments Details See Also Examples

Description

Weibull distributed data plots as a straight line on log-log plot using wlines(). It is best used after function wplot() has been called.

Usage

1
2
weilines(x, y, lty = NULL, lwd = NULL, col = "black", type = "l",
  pch = 0)

Arguments

x

vector of values

y

vector of values the same length as x

lty

line type

lwd

line width

col

line color

type

type of plotting

pch

symbol type for type = "b"

Details

A Weibull plot uses log paper and has log(1/(1-F(x)) versus x, where the data values x have an empirical cdf of F(x). The plot margins may need to be adjusted so that the right hand axis is visible.

See Also

wplot() creates the Weibull plot

Examples

1
2
3
4
5
6
dummy <- c(0,0)
weiplot(dummy, xlim = c(1e-3, 10), type = "n")
x <- 10^seq(-3, 2, length = 100)
weilines(x, pexp(x), col = "red")
weilines(x, pweibull(x, 2), col = "blue")
weilines(x, pweibull(x, 3), col = "green")

kdist documentation built on May 2, 2019, 11:20 a.m.