plot_life_curve_overlap: Overlaped life curves

Description Usage Arguments Value

View source: R/plot_life_curve_overlap.R

Description

Plot two or more life curves on top of each other

Usage

1
2
3
4
plot_life_curve_overlap(models_groups, group_names = names(models_groups),
  title_aux = "", x_label = "Mileage (km)", y_label = "Reliability (%) ",
  ylim = c(0, 1), add_curves = TRUE, best_model = 1,
  add_interpolation_line = FALSE)

Arguments

add_curves:

if TRUE, the distribution curves will be added.

add_interpolation_line:

if TRUE, adds a line connecting the points.

best_model:

The rank of model to be used in the plot or the name fo the distribution. If best_model = 2, the second best model will be used in the plot

group_names:

Names for the curves

models_groups:

A list of objects containing the element 'models' (which is a list of flexsurvreg')

title_aux:

complement to the title

ylim:

Y axis limit.

Value

A ggplot of the plots overlaped.


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