Learn R Programming

OpenRepGrid (version 0.1.16)

colorize_matrix_rows: 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

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

Run the code above in your browser using DataLab