prTcValidateAndPrepClr: Checks and prepares colors

View source: R/transitionClass_helpers.R

prTcValidateAndPrepClrR Documentation

Checks and prepares colors

Description

The colors need to match the size of the transition matrix and therefore we need to have this input check. The output is always a matrix of the exact same dimensions as the transition matrix.

Usage

prTcValidateAndPrepClr(value, no_cols, no_rows, is3D)

Arguments

value

The color values

no_cols

The no. of columns in the transition matrix

no_rows

All the row counts in the transition plot

is3D

Whether the transition matrix has 3 dimensions

Value

matrix Returns a matrix of the same size as the transition matrix


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