plot_f | R Documentation |

Plots the estimated observed and population curve for the life years difference (Manevski, Ruzic Gorenjec, Andersen, Pohar Perme, 2022).

plot_f( years, xlab = "Time interval", ylab = "Absolute risk", xbreak, ybreak, xlimits, ylimits, show.legend = TRUE )

`years` |
the object obtained using function |

`xlab` |
a title for the x axis. |

`ylab` |
a title for the y axis. |

`xbreak` |
the breaks on the x axis (this is supplied to |

`ybreak` |
the breaks on the y axis (this is supplied to |

`xlimits` |
define the limits on the x axis (this is supplied to |

`ylimits` |
define the limits on the y axis (this is supplied to |

`show.legend` |
if TRUE, the legend is shown on the graph. |

A ggplot2 implementation for plotting the observed and population curves. The type of curves is
dependent upon the measure calculated using `years`

function (argument `measure`

).

A ggplot object

`years`

, `plot_years`

relsurv documentation built on Dec. 28, 2022, 2:25 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.