rich_colors: Create a vector of n colors that are perceptually equidistant...

View source: R/colors.R

rich_colorsR Documentation

Create a vector of n colors that are perceptually equidistant and in an order that is easy to interpret

Description

Create a vector of n colors that are perceptually equidistant and in an order that is easy to interpret

Usage

rich_colors(n, alpha = 1)

Arguments

n

The number of colors to produce

alpha

Transparency, from 0 (fully transparent) to 1 (opaque)

Value

A vector of n colors

Examples

library(gfutilities)
ncol <- 10
x <- rich_colors(ncol, 1)
plot(1:ncol, 1:ncol, col = x, pch = 20, cex = 5)

pbs-assess/gfutilities documentation built on Sept. 18, 2023, 7:57 a.m.