View source: R/repgrid-output.r
colorize_matrix_rows | 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.