plotmat: Plot a matrix

Description Usage Arguments Value Note Author(s) Examples

View source: R/plotmat.R

Description

Plot an image of a matrix using ggplot2

Usage

1
plotmat(mat, color = "green", title = NULL, args = NULL)

Arguments

mat

Matrix to plot

color

Color scheme: "green", "red", or "wes"

title

optional plot title

args

optional additional ggplot arguments

Value

sends image to active graphics device or outputs a ggplot object

Note

Uses reshape2::melt which may be aliased with reshape::melt

Author(s)

Evan Poworoznek

Examples

1
2
mat = diag(1:9 - 5)
plotmat(mat)

infinitefactor documentation built on April 3, 2020, 5:09 p.m.