This is a helper function to wrap the css to make text certain colours. This will be useful when making grattan charts. This should be used within `ggtext::geom_richtext()` or if being used in a sub-title or title it should be used in the `labs()` call together with `theme(plot.subtitle = element_markdown())`

colour_text(colour, text, is_note = FALSE, bold_labs = TRUE)

Arguments

colour

(a character) the colour you want to colour text

text

(a character) what the coloured text should say

is_note

(logical; default = FALSE) is it a note?

bold_labs

(logical; default = TRUE) should the labels be bolded?

Value

(a glue)

Examples