dot-gen_colours function

Generate colours for PCHC figures

Generate colours for PCHC figures

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.

.gen_colours(col, n)

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.

Returns

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

Examples

# generate 10 colours for base colour "green" .gen_colours("green", 10) # generate 7 colours for base colour "orange" .gen_colours("orange", 7)
  • Maintainer: Kim Rand
  • License: GPL (>= 2)
  • Last published: 2024-05-21

Useful links