View source: R/plot_sg_weighted_km.R
| figure_note | R Documentation |
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
)
x |
Output from plot_sg_weighted_km() |
prefix |
Character. Prefix for the note. Default uses italic Note. |
include_definition |
Logical. Include subgroup definition. Default: TRUE |
include_hr_explanation |
Logical. Include HR(bc) explanation. Default: TRUE |
custom_text |
Character. Additional custom text to append. Default: NULL |
Character string formatted as a figure note, or NULL if no content
## Not run:
km_result <- plot_sg_weighted_km(fs.est = fs)
cat(figure_note(km_result))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.