Learn R Programming

sysAgNPs (version 1.0.0)

sys_generate_color_values: Generate Dynamic Color Values This function is derived from the 'ggradar' package. https://github.com/ricardo-bion/ggradar/. This function dynamically generates a vector of color values based on the number of groups. It uses RColorBrewer for smaller sets of groups and generates a gradient for larger sets.

Description

Generate Dynamic Color Values This function is derived from the 'ggradar' package. https://github.com/ricardo-bion/ggradar/. This function dynamically generates a vector of color values based on the number of groups. It uses RColorBrewer for smaller sets of groups and generates a gradient for larger sets.

Usage

sys_generate_color_values(num_groups)

Value

A character vector of color values.

Arguments

num_groups

The number of groups for which to generate color values.

Examples

Run this code
sys_generate_color_values(5)
sys_generate_color_values(20)

Run the code above in your browser using DataLab