check_pal produces a bar chart showing the gov.uk approved colours as available here and in the vector gov_cols.

check_pal(x = gov_cols)

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

library(govstyle) ## 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")] )