fig.fromTable: Make Figure from Table

Description Usage Arguments Value Examples

View source: R/fig.R

Description

Make Figure from Table

Usage

1
fig.fromTable(mat, colmat = matrix("black", nrow(mat), ncol(mat)))

Arguments

mat

The matrix.

colmat

A matrix of colors. Specifies the colors for each cell in the matrix.

Value

A grob.

Examples

1
2
3
colmat <- matrix("red", 5, 5)
colmat[,1] <- "blue"
fig.fromTable(iris[1:5, 1:5], colmat)

tpq/miSciTools documentation built on Sept. 16, 2019, 4:43 p.m.