Learn R Programming

dbrobust (version 1.0.0)

get_custom_palette: Generate a Custom Color Palette

Description

Returns a vector of distinct colors for use in plotting or annotation. Uses a predefined set of base colors and interpolates additional colors if needed.

Usage

get_custom_palette(n)

Value

A character vector of length n containing hexadecimal color codes.

Arguments

n

Integer. Number of colors required.