View source: R/color_mapping_functions.R
default_hex | R Documentation |
Returns a built-in data frame with hex code.
default_hex(n_groups = 5, cvd = FALSE)
n_groups |
integer of number of selected groups |
cvd |
logical Color Vision Deficent Friendly palette useage |
data.frame
# Get hex codes for 5 groups
hex_df <- default_hex()
# Get hex codes for 3 groups with CVD palette
hex_df <- default_hex(3, TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.