check-scalar-isHexColorFunction | R Documentation |
This assert check is intended primarily to check for RColorBrewer or viridis hexadecimal color value return.
isHexColorFunction(x, nullOk = FALSE)
x |
Object. |
nullOk |
|
TRUE
on success;
FALSE
on failure, with cause set.
Updated 2022-10-18.
RColorBrewer, viridis packages.
## TRUE ====
x <- viridis::viridis
isHexColorFunction(x)
## FALSE ====
x <- ggplot2::scale_color_manual
isHexColorFunction(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.