Description Usage Arguments Value
View source: R/plot_life_curve.R
Plot life curve
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)
|
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 |
A ggplot of the life curve.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.