heatmap_set_colors: Ramp colors given to the length of the number of ages in the...

View source: R/utils-heatmap-set-colors.R

heatmap_set_colorsR Documentation

Ramp colors given to the length of the number of ages in the data frame w

Description

Ramp colors given to the length of the number of ages in the data frame w

Usage

heatmap_set_colors(
  wa = NULL,
  cols = c("red", "yellow", "green", "dodgerblue"),
  ...
)

Arguments

wa

A data frame containing columns named by numbers which are ages

cols

A vector of the colors to use to build the color ramp

...

Absorbs arguments intended for other functions

Value

A vector of the colors ramped by the function. The vector will be the number of ages minus 1 found in the wa data frame. The color ramp is provided by grDevices::colorRampPalette()


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.