default_hex: Return default hex colors

View source: R/color_mapping_functions.R

default_hexR Documentation

Return default hex colors

Description

Returns a built-in data frame with hex code.

Usage

default_hex(n_groups = 5, cvd = FALSE)

Arguments

n_groups

integer of number of selected groups

cvd

logical Color Vision Deficent Friendly palette useage

Value

data.frame

Examples

# 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)

KarstensLab/microshades documentation built on June 11, 2024, 11:41 a.m.