weilines function

Add Lines onto a Weibull Plot

Add Lines onto a Weibull Plot

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

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.

Examples

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")

See Also

wplot() creates the Weibull plot

  • Maintainer: Tim Lamont-Smith
  • License: GPL-3
  • Last published: 2018-05-16

Useful links