check_pal: Show colours in gov.uk colour palette

Description Usage Arguments Value Examples

Description

check_pal produces a bar chart showing the gov.uk approved colours as available here and in the vector gov_cols. Incorporated into blockbuster package from https://github.com/ukgovdatascience/govstyle.

Usage

1

Arguments

x

Either an integer in which case: display gov_cols(1:x) or a character or integer vector, in which case return gov_cols(x). Can also be specified manually: see examples.

Value

A pie chart displaying the gov.uk approved colour scheme.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Show a subset of gov.uk colours

## Choose n colours:

check_pal(2)

check_pal(4)

## Pick a range of colours

check_pal(3:8)

check_pal(c(1,10))

## Pick with character vector

check_pal(
x = gov_cols[c("green", "grass_green")]
)

DFE-Capital/blockbuster2 documentation built on May 4, 2019, 1:08 p.m.