Plot a color bar with values

plot_color_bar(vals, cols, fig_fn = NULL, title = "", show_vals_ind = NULL)

Arguments

vals

to plot

cols

colors of the values (same length as vals)

fig_fn

if null - plot inline

title

of legend

show_vals_ind

logical vector - which values to show