Learn R Programming

ggpicrust2 (version 2.5.10)

generate_nested_colors: Generate colors for nested grouping variables

Description

Generate colors for nested grouping variables

Usage

generate_nested_colors(metadata, all_groups, colors = NULL)

Value

A character vector of colors appropriate for the grouping structure

Arguments

metadata

A data frame containing metadata

all_groups

A character vector of grouping variables

colors

A character vector of colors or NULL