current_markdown_colour | R Documentation |
This function determines the Certe theme colour currently used in a markdown document (Quarto or R Markdown), based on the YAML header.
current_markdown_colour(default = "certeblauw")
default |
default colour |
It returns a Certe colour if one is set in the YAML header, and checks in this order:
colour-main
colour-titlepage-titlebanner
colour-titlepage-full
colour-verticalbars
colour-heading1
If none is set, it returns the default setting, which is "certeblauw"
.
This function is the default to set the theme for tbl_flextable()
.
It can be also be used for plot2()
:
# will turn e.g. 'certeblauw' or 'certeroze' based on PDF format settings library(certeplot2) admitted_patients |> plot2(colour = current_markdown_colour())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.