SDGs_cols: Get the SDGS colour pallette

View source: R/SDGs_colours.R

SDGs_colsR Documentation

Get the SDGS colour pallette

Description

get the SDGS colour for each Goal

Usage

SDGs_cols(...)

Arguments

...

arguments for passing to other functions

Value

hex colour for each Goal

Examples

## Not run: 
Norway <- SDGsR::get_indicator(Country = "578", indicator = "15.4.1")
Norway %>%
  dplyr::select(timePeriodStart, value, seriesDescription) %>%
  ggplot2::ggplot(aes(timePeriodStart, value)) +
  ggplot2::geom_point(colour = SDGs_cols("Goal15")) +
  ggplot2::ggtitle(label = paste0(Norway$seriesDescription[1]))
  
## End(Not run)

DrMattG/SDGsR documentation built on April 3, 2025, 2:13 p.m.