plot_life_curve: Life curve

Description Usage Arguments Value

View source: R/plot_life_curve.R

Description

Plot life curve

Usage

1
2
plot_life_curve(m_flexsurvreg, title_aux = "", x_label = "time",
  y_label = "reliability", ylim = c(0, 1), xlim = NA, line_width = 1.5)

Arguments

x_label,

y_label: labels for Y and X axis

m_flexsurvreg:

An object of class flexsurvreg, or a list of objects 'flexsurvreg'. If a list of models is given, the plot will have all the curves

title_aux:

a complement to the title

xlim:

limits for x-axis. A blank point is added to to the plot, otherwise the life curves are not fully drawn.if xlim is vector of length 1, this will be the upper limmit.

ylim:

limits for y-axis. if ylim is vector of length 1, this will be the lower limmit

Value

A ggplot of the life curve.


leonardommarques/reliabilitytools documentation built on Aug. 1, 2019, 8:03 p.m.