hex: Get a hex string representation of colors

Description Usage Arguments Value Examples

Description

Get a hex string representation of colors

Usage

1

Arguments

col

Vector containing any of the three kinds of R color specifications:

  1. a color name (see colors)

  2. a hexadecimal string of the form "#rrggbb" or "#rrggbbaa"(see rgb)

  3. a positive integer i meaning palette()[i]

alpha

Whether or not to include alpha channel values in the result (default: FALSE).

Value

The color(s) as hexadecimal strings

Examples

1
hex("orange", alpha = FALSE)

briandconnelly/colormod documentation built on May 13, 2019, 5:13 a.m.