Generate the colour 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 colour. For example, the most recent year of data will always be black and the second most recent year will always be red.

plot_colour(n = 10)

Arguments

n

The default number of colours to generate is 10.

Value

A vector of colours

Author

Kelli F. Johnson

Examples

n <- 15
plot_colour(n)
#>  [1] "#A6D854" "#E78AC3" "#8DA0CB" "#FC8D62" "#66C2A5" "#999999" "#F781BF"
#>  [8] "#A65628" "#FFFF33" "#FF7F00" "#984EA3" "#4DAF4A" "#377EB8" "#E41A1C"
#> [15] "#000000"