show_colors: plot and show hex values of colors

Description Usage Arguments Value Examples

Description

plot and show hex values of colors

Usage

1
show_colors(colors, show.legend = TRUE, ncols = NULL, alpha = NA)

Arguments

colors

character vector of hex value colors

show.legend

show the legend with hex values (logical)

ncols

number of columns in the plot

alpha

set alpha level for all colors

Value

A plot with the index of the color in the tile

Examples

1
2
3
4
show_colors(mejr_palette())
show_colors(topo.colors(25))
show_colors(cm.colors(64), FALSE)
show_colors(viridisLite::viridis(15), alpha = .8)

iamamutt/ggdistribute documentation built on May 8, 2019, 3:12 a.m.