Learn R Programming

Tivy (version 0.1.1)

generate_robust_colors: Generate robust color palette for any number of groups

Description

Creates a color palette that can handle any number of groups without errors. Uses RColorBrewer when possible, falls back to other methods for large numbers.

Usage

generate_robust_colors(n_groups)

Value

Character vector of colors.

Arguments

n_groups

Integer. Number of groups/colors needed.