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

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