prTpGetBoxPropClr: Gets the color for the given box

View source: R/transitionPlot_helpers.R

prTpGetBoxPropClrR Documentation

Gets the color for the given box

Description

Gets the color for the given box

Usage

prTpGetBoxPropClr(clr, no_boxes, lengthOneOK = FALSE)

Arguments

clr

The color of the boxes, either a matrix, a vector of length two, or a single color

no_boxes

The number of boxes

lengthOneOK

If it is ok to have only one color

Value

matrix With two columns and no_boxes rows. If function fails then return NULL


Gmisc documentation built on Aug. 26, 2023, 1:07 a.m.