plot.fitted_life_data: Plotting fitted_life_data Objects

Description Usage Arguments Details Value

View source: R/lifedata.R

Description

Provides various plots of fitted distribution

Usage

1
2
3
## S3 method for class 'fitted_life_data'
plot(x, type = "probability", theme = "base_r",
  line_par = NULL, point_par = NULL, ...)

Arguments

x

a fitted_life_data object

type

type of plot desired. default to 'probability'. see details

theme

character indicating style. only 'base_r' and 'weibull++' are available. see details.

line_par

a list containing graphical parameters for lines

point_par

a list contianing graphical parameters for points

Details

Values for type input

probability linearized scale plot. distribution specific.
failure probability of failure over time i.e. CDF
reliability reliability over time i.e. 1-CDF
pdf fitted probability density function
failure rate fitted failure rate i.e. hazard function

First 3 plots will included points corresponding to the median ranks of the failure data.

By convention, in linearized scales, the exponential distribution plots the reliability while Weibull plots the unreliability.

When theme = 'weibull++', the plots styling is automatically set to mirror Weibull++. By default, theme = 'base_r' and plots a very simple plot.

Graphical parameters can be passed when theme = 'base_r' but not for others. When passing graphical parameters, those for lines should be passed as a list in line_par. Those for points should be passed as a list in point_par. All others e.g., xlab, should be passed generically (...)

Value

produces desired plot


lxy009/weibullpp documentation built on May 21, 2019, 9:16 a.m.