colorize_matrix_rows {OpenRepGrid}R Documentation

Colorize matrix cell rows using crayon colors

Description

Atomic matrices can be wrapped into crayon color codes without destroying the structure or alignment. Used to indicate preferred poles.

Usage

colorize_matrix_rows(m, colors = "white", na.val = "white")

Arguments

m

A matrix.

colors

crayon colors as a string. One of black, red, green, yellow, blue, magenta, cyan, white, silver.

Examples

m <- as.matrix(mtcars)
colorize_matrix_rows(m, "red")


[Package OpenRepGrid version 0.1.16 Index]