weiplot function

Create Weibull Plot.

Create Weibull Plot.

A special type of plot where Weibull distributed data plots as a straight line. This was also originally called Rayleigh paper. Both Rayleigh and exponential distributions also plot as straight lines.

weiplot(data, n = 70, type = "p", xlim = NULL, ylim = c(0.01, 10), main = "Weibull Plot", sub = NULL, ylab = "log(1/1-F(x))", ylab2 = "F(x)", xlab = "x", percent = "False")

Arguments

  • data: data values from which a cumulative density function will be estimated using ecdf(data)
  • n: number of points required in plot (default n = 70).
  • type: plot type
  • xlim: the minimum and maximum to be used for the x-axis
  • ylim: the minimum and maximum to be used for the y-axis
  • main: the title of the plot
  • sub: the sub-title of the plot
  • ylab: the title of the left y-axis
  • ylab2: the title of the right y-axis
  • xlab: the title of the x-axis
  • percent: logical; display right hand axis as percentages

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

graphics::par(mar = c(5, 5, 5, 5)) r <- rexp(100000) weiplot(r, xlim = c(1e-3, 10)) x <- 10^seq(-3, 2, length = 100) weilines(x, pexp(x))

See Also

weilines() adds lines to a Weibull plot

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

Useful links