contrast_colors_by_group | R Documentation |
Define contrast colors by group colors
contrast_colors_by_group(
sedesign,
sample_color_list = NULL,
group_name = "Group",
contrast_sep = "-",
C_min = 80,
C_max = 100,
L_min = 35,
L_max = 70,
default_color_style = c("categorical", "navy"),
verbose = FALSE,
...
)
sedesign |
|
sample_color_list |
|
group_name |
|
contrast_sep |
|
C_min , C_max |
|
L_min , L_max |
|
default_color_style |
|
verbose |
|
... |
additional arguments are passed to |
This function takes colors assigned to groups, and applies them to contrasts based upon the groups represented in each contrast. Group colors are blended into one output color per contrast, then the color is adjusted for minimum chroma (C) and maximum luminance (L) to ensure the colors have acceptable vibrance.
When sample_color_list
is supplied, which defines colors per group,
these colors are used as appropriate.
When sample_color_list
is not supplied, categorical colors are
defined for all observed group names using colorjam::group2colors()
.
character
vector of R colors, with names defined
by contrast_names(sedesign)
.
Other jam experiment design:
check_sedesign()
,
contrast2comp()
,
contrast_names_to_sedesign()
,
contrasts_to_factors()
,
contrasts_to_venn_setlists()
,
draw_oneway_contrast()
,
draw_twoway_contrast()
,
filter_contrast_names()
,
groups_to_sedesign()
,
plot_sedesign()
,
sedesign_to_factors()
,
validate_sedesign()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.