View source: R/party_colours.R
party_colours | R Documentation |
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.
party_colours(x)
x |
A vector of party names. |
A vector of corresponding hex codes
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.