Learn R Programming

Gmisc (version 3.0.3)

prTcValidateAndPrepClr: 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)

Value

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

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