Learn R Programming

eq5dsuite (version 1.0.1)

.gen_colours: Generate colours for PCHC figures

Description

This internal function generates a vector of colours based on the specified base colour. Currently only green and orange colours are implemented. The wrapper is used in Figures 2.2-2.4.

Usage

.gen_colours(col, n)

Value

A vector of colours generated based on the specified base colour and number of colours.

Arguments

col

A character string specifying the base colour. Only "green" or "orange" is accepted.

n

A positive integer specifying the number of colours to generate.

Examples

Run this code
# generate 10 colours for base colour "green"
.gen_colours("green", 10)
# generate 7 colours for base colour "orange"
.gen_colours("orange", 7)

Run the code above in your browser using DataLab