Skip to contents

This function assigns default colors if none are provided or adjusts the color vector to match the number of conditions.

Usage

set_default_colors(colors, unique_conds, default_colors)

Arguments

colors

character vector, specifying colors for conditions. If NULL, default_colors is used.

unique_conds

character vector, listing unique conditions to match color assignments (only the length counts).

default_colors

character vector, default colors to use if colors is not provided.

Value

A character vector of colors, matching the length of unique_conds.