getColourVectorFromLevels: Function to generate a vector of colours from a vector of...

View source: R/support.R

getColourVectorFromLevelsR Documentation

Function to generate a vector of colours from a vector of levels and a colour specification list

Description

Function to generate a vector of colours from a vector of levels and a colour specification list

Usage

getColourVectorFromLevels(levels, colourSpecification)

Arguments

levels

Vector of levels.

colourSpecification

List that specifies which levels are to be represented by which respective colour. Make sure, that the definition matches the levels in parameter levels.

Value

A vector of colours in the order of the input levels.


Fraternalilab/BrepPhylo documentation built on Jan. 3, 2025, 10:03 a.m.