Learn R Programming

pophelper (version 2.2.9)

getColors: Internal: Generate colours based on number of K

Description

Internal: Generate colours based on number of K.

Usage

getColors(k)

Arguments

k

A numeric indicating the number of colours required

Value

Returns a character vector of k colours in hexadecimal format

Details

Colours 1 to 12 are custom unique colours. Colours beyond 15 are generated from colour ramp rich.colors() from package gplots.