Skip to contents

Coerce a string or a number to a color

Usage

as_color(x)

Arguments

x

Object to be coerced. Can be a valid R color (see colors()) or a hexademical.

Value

A color