Formats the figure note from plot_sg_weighted_km() output for use in Quarto or RMarkdown documents.
figure_note(
x,
prefix = "*Note*: ",
include_definition = TRUE,
include_hr_explanation = TRUE,
custom_text = NULL
)Character string formatted as a figure note, or NULL if no content
Output from plot_sg_weighted_km()
Character. Prefix for the note. Default uses italic Note.
Logical. Include subgroup definition. Default: TRUE
Logical. Include HR(bc) explanation. Default: TRUE
Character. Additional custom text to append. Default: NULL