Portfolio color scale

make_port_col_scale(cols)

Arguments

cols

Named character vector of colours in hex format. Names correspond to tickers in the universe, plus "Cash" and "Portfolio"

Value

ggplot2 colour scale

Examples

my_cols <- portfolio_colours(7)
port_colour_scale <- make_port_col_scale(my_cols)