gov_cols: A vector of the gov.uk approved colours

Description Usage Format Value Examples

Description

gov_cols Provides a vector of named colours from the approved gov.uk colour list available here.

Usage

1

Format

An object of class character of length 15.

Value

A list of named hexadecimal colours.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(ggplot2)
library(govstyle)
library(dplyr)

mtcars %>%
   ggplot +
   aes(
   x = mpg,
   y = wt
   ) +
   geom_point(
   colour = gov_cols["green"]
   ) +
   theme_gov()

UKGov-Data-Science/govstyle documentation built on Oct. 7, 2019, 2:39 p.m.