resolvePlotColour: Resolve a plotting colour argument

View source: R/graphics-parameter-helpers.R

resolvePlotColourR Documentation

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)

Arguments

colour

colour supplied by the user.

choices

colour names available for completion.

argumentName

argument name used in the error message.

Value

The completed colour name, or 'colour' unchanged.


s20x documentation built on Nov. 5, 2026, 9:06 a.m.