kdist (version 0.2)

weilines: Add Lines onto a Weibull Plot

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

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

Run this code
# NOT RUN {
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")
# }

Run the code above in your browser using DataCamp Workspace