plot_palette: Display a vector of hex colours.

Description Usage Arguments

View source: R/utils-hexcolour.R

Description

Display a vector of hex colours (given as character strings).

Usage

1
2
plot_palette(colours, ncol = 2, width = 40, height = 10,
  xfraction = 0.99, yfraction = 0.95)

Arguments

colours

vector of hex colours e.g. c('#ffffff', '#123456')

ncol

Number of columns

width, height

dimensions of each colour swatch

xfraction, yfraction

fill fraction of the swatch


coolbutuseless/lofi documentation built on Nov. 4, 2019, 9:13 a.m.