I am making a confusion matrix for a document, and I was wondering if LaTeX has the capabilities to handle this. It is essentially a table, but with background shading corresponding to the value in the table (the shading could be hand-coded).
How can this be done in LaTeX? Is it possible? An example is
Best Answer
Building on Qrrbrbirlbel's answer, the
collcell
package can be used to automatically apply the color to each cell without the need to explicitly use a macro; a little example (notice particularly the second matrix):