Learn R Programming

s20x (version 3.4.0)

resolvePlotColour: Resolve a plotting colour argument

Description

Accepts anything R can draw with, such as a colour name, a hex string or a palette number. Abbreviated colour names are completed against `choices`.

Usage

resolvePlotColour(colour, choices, argumentName)

Value

The completed colour name, or `colour` unchanged.

Arguments

colour

colour supplied by the user.

choices

colour names available for completion.

argumentName

argument name used in the error message.