View source: R/colour_string.R
colour_string | R Documentation |
Writes html tags around phrases in a string to show those phrases in a different colour
colour_string(original, to_colour = NULL)
original |
the string of text (e.g. a plot title or annotation) |
to_colour |
a named vector of colours. The names of each colour are the words in the text that will be drawn that colour. |
the string with html tags to add colour to the specified words
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.