show_colors: Show colors.

View source: R/bruceR-stats_6_plot.R

show_colorsR Documentation

Show colors.

Description

Show colors.

Usage

show_colors(colors)

Arguments

colors

Color names.

e.g.,

  • "red" (R base color names)

  • "#FF0000" (hex color names)

  • see::social_colors()

  • viridis::viridis_pal()(10)

  • RColorBrewer::brewer.pal(name="Set1", n=9)

  • RColorBrewer::brewer.pal(name="Set2", n=8)

  • RColorBrewer::brewer.pal(name="Spectral", n=11)

Value

A gg object.

Examples

show_colors("blue")
show_colors("#0000FF")  # blue (hex name)
show_colors(RGB(0, 0, 255))  # blue (RGB)
show_colors(see::social_colors())
show_colors(see::pizza_colors())


bruceR documentation built on June 22, 2024, 12:26 p.m.