colorize_matrix_rows: Colorize matrix cell rows using crayon colors

View source: R/repgrid-output.r

colorize_matrix_rowsR 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")


markheckmann/OpenRepGrid documentation built on April 14, 2024, 8:15 a.m.