Add labels to ggconsort cohorts
Value
The modified ggconsort_cohort object which now includes
additional $labels items according to provided label definitions
Examples
# labels feed cohort_count_adorn() and the automatic box labels of
# consort_box_add()
trial_data |>
cohort_start("Assessed for eligibility") |>
cohort_define(
consented = .full |> dplyr::filter(declined != 1)
) |>
cohort_label(consented = "Consented")
#> A ggconsort cohort of 1200 observations with 1 cohort:
#> - consented (1141)
