Given a numeric matrix, assign to each cell a color (character) value based on linearly interpolating a given vector of colors.
color_matrix(x, colors = heat.colors(10))
Numeric or logical matrix.
Character vector of colors.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.