View source: R/helper_functions.R
check_colour_return_rgb | R Documentation |
Checks colour variables are either RGB values, hex colour codes or a recognised colour name and converts to rgb (helper funct)
check_colour_return_rgb(colour, colour_variable_name)
colour |
The colour string / rgb vector to check |
colour_variable_name |
The name of the variable, for readability of error messages |
An error message if the colour value can't be interpreted
check_colour_return_rgb("White", "test_colour")
## Not run: check_colour_return_rgb("foo", "test_colour")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.