Useful in conjuction with ggtext and glue
Usage
color_text(text, hex_code)
Arguments
- text
<character>
string of text to
- hex_code
<character>
string, color hex code
Examples
color_text("Hello there!", "#BD43BF")
#> [1] "<span style='color:#BD43BF'>Hello there!</span>"