show_cols: Show list of colors

View source: R/show_cols.R

show_colsR Documentation

Show list of colors

Description

Show list of colors

  • show_cols: show list of colors

  • show_cols_brewer: show list of colors in RColorBrewer style

Usage

show_cols(colors_list, margin = 8, fontsize = 1, family = NULL)

show_cols_brewer(colors_list)

show_col(colors, labels = TRUE, borders = NULL, cex_label = 1, nrow = NULL)

Arguments

colors_list

A list objects filled with colors_list or a color vector

margin

margin in the left

family, fontsize

font family and size of color names in the left

colors

a character vector of colors

labels

boolean, whether to show the hexadecimal representation of the colours in each tile

borders

colour of the borders of the tiles

cex_label

size of printed labels, works the same as cex parameter of plot()

nrow

integer, number of rows

Examples

print(names(colors_group))
show_cols(colors_group$rainbow, margin = 14)

kongdd/rcolormap documentation built on June 29, 2024, 11:56 a.m.