Description Usage Arguments Value Examples
View source: R/party_colours.R
This function takes a vector of party names and returns the parties' corresponding colours as hex values. It includes a few under-the-hood tricks to match on all manner of different names.
1 |
x |
A vector of party names. |
A vector of corresponding hex codes
1 | party_colours(c("Lab", "lab", "LD", "Tories", "ScotNat", "SNP", "grn"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.