plot_color: Colors for the Hake Assessment

Description Usage Arguments Value Author(s) Examples

View source: R/plot-data.R

Description

Generate the color scheme for the hake assessment such that as more years of historical data are added on that the more recent years are still the same color. For example, the most recent year of data will always be black and the second most recent year will always be red.

Usage

1
plot_color(n.cols = 10)

Arguments

n.cols

number of colors to return

Value

A vector of colours

Author(s)

Kelli Faye Johnson

Examples

1
2
n <- 17
plot(data.frame(1:n, 1), col = plot_color(n), pch = 19, cex = 5)

pbs-assess/hakedata documentation built on Jan. 16, 2021, 9:15 p.m.