Shared pipeline step for all atlas types: applies colour palette to atlas data and builds the legend data structure.
apply_colours_and_legend(atlas_data, colour_by, palette, na_colour, label_by)List with `atlas_data` and `legend_data`
Prepared atlas data frame
Column name for colour values
Colour palette specification
Colour for NA values
Column name for labels