| apply_colours_and_legend | R Documentation |
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)
atlas_data |
Prepared atlas data frame |
colour_by |
Column name for colour values |
palette |
Colour palette specification |
na_colour |
Colour for NA values |
label_by |
Column name for labels |
List with 'atlas_data' and 'legend_data'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.