Learn R Programming

visR (version 0.4.1)

.convert_alpha: Converts an alpha value between its numeric and its hex-encoded form.

Description

The function accepts a numeric (or NULL/NA) or a two-character hex encoded alpha representation and returns a the respective other representation.

Usage

.convert_alpha(numeric_alpha = NULL, hex_alpha = NULL)

Value

If numeric_alpha was specified, its two-letter representation is returned. If hex_alpha was specified, its numeric representation is returned.

Arguments

numeric_alpha

A numerical value between 0 and 1.

hex_alpha

A two-letter character string.