colorize_matrix_rows {OpenRepGrid} | R Documentation |
Atomic matrices can be wrapped into crayon color codes without destroying the structure or alignment. Used to indicate preferred poles.
colorize_matrix_rows(m, colors = "white", na.val = "white")
m |
A matrix. |
colors |
crayon colors as a string. One of black, red, green, yellow, blue, magenta, cyan, white, silver. |
m <- as.matrix(mtcars)
colorize_matrix_rows(m, "red")