Description Usage Arguments Value Examples
Make Figure from Table
1 | fig.fromTable(mat, colmat = matrix("black", nrow(mat), ncol(mat)))
|
mat |
The matrix. |
colmat |
A matrix of colors. Specifies the colors for each cell in the matrix. |
A grob.
1 2 3 | colmat <- matrix("red", 5, 5)
colmat[,1] <- "blue"
fig.fromTable(iris[1:5, 1:5], colmat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.