Skip to contents

Create a log probability of death plot of the given life table, optionally including multiple lines to indicate different input open age intervals.

Usage

plot_lifetable(lt, open_age_var = NULL)

Arguments

lt

Life table to plot. Should have at least columns loc_id, year, sex, age_start, and qx.

open_age_var

Optional column name indicating column with the input open age to use as the color aesthetic.

Value

a plot of the life table.

Examples

plot_lifetable(usa_2000_processed_lt, "input_open_age")