fm_generate_colors: Generate text RGB color specifications.

View source: R/plot.R

fm_generate_colorsR Documentation

Generate text RGB color specifications.

Description

Generates a text RGB color specification matrix based on a color palette.

Usage

fm_generate_colors(
  color,
  color.axis = NULL,
  color.n = 512,
  color.palette = cm.colors,
  color.truncate = FALSE,
  alpha = NULL
)

Arguments

color

character, matrix or vector

color.axis

The min/max limit values for the color mapping.

color.n

The number of colors to use in the color palette.

color.palette

A color palette function.

color.truncate

If TRUE, truncate the colors at the color axis limits.

alpha

Transparency/opaqueness values.

Value

A list with character vector colors and numeric vector alpha

Author(s)

Finn Lindgren finn.lindgren@gmail.com

Examples

fm_generate_colors(1:4, color.axis = c(1, 4))


fmesher documentation built on July 1, 2024, 5:07 p.m.