Simple visualization of available color palettes and spectra from left to right.

showColors(input, n = 20, title_size = 10)

showColorPalettes(input = validColorPalettes(flatten = TRUE), n = 15)

showColorSpectra(input = validColorSpectra(flatten = TRUE), n = 20)

Arguments

input

Character vector of input options for clrsp and clrp.

n

Numnber of colors.

title_size

Size of plot titles.

Value

A plot of ggplots arranged with gridExtra::arrange.grid().

Examples


 showColors(input = c("inferno", "Reds", "npg", "uc"), n = 10)

 showColors(input = validColorPalettes()[[1]])