This function allows to modify the `.$fc` tibble included in each fc object that contains all the parameters of the flowchart.
Examples
#Example: let's modify the excluded box
text_exc <- paste0(
sum(safo$inclusion_crit == "Yes"),
" not met the inclusion criteria\n",
sum(safo$exclusion_crit == "Yes"),
" met the exclusion criteria"
)
safo |>
as_fc(label = "Patients assessed for eligibility") |>
fc_filter(!is.na(group), label = "Randomized", show_exc = TRUE) |>
fc_modify(
~ . |>
dplyr::mutate(
text = ifelse(id == 3, text_exc, text),
x = ifelse(id == 3, 0.75, x)
)
) |>
fc_draw()