SDGs_cols | R Documentation |
get the SDGS colour for each Goal
SDGs_cols(...)
... |
arguments for passing to other functions |
hex colour for each Goal
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.