Skip to contents

Useful in conjuction with ggtext and glue

Usage

color_text(text, hex_color_code)

Arguments

text

text to be colored

hex_color_code

color to be applied to the text

Examples

color_text("Hello there!", "#BD43BF")
#> [1] "<span style='color:#BD43BF'>Hello there!</span>"