powered by
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")
A matrix.
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")
Run the code above in your browser using DataLab