Learn R Programming

ggdistribute (version 1.0.3)

show_colors: plot and show hex values of colors

Description

plot and show hex values of colors

Usage

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

Run this code
# NOT RUN {
show_colors(mejr_palette())
show_colors(topo.colors(25))
show_colors(cm.colors(64), FALSE)
show_colors(viridisLite::viridis(15), alpha = .8)
# }

Run the code above in your browser using DataLab