plot_matrix: Plot matrix

Description Usage Arguments Value Examples

Description

A simple plot of matrix entries values.

Usage

1
plot_matrix(mat, rowIdx = NULL, colIdx = NULL, ...)

Arguments

mat

[matrix/ data.frame] (Required) Data matrix to plot.

rowIdx, colIdx

[integer] (Optional) Default NULL. Indices of the matrix to plot.

...

(Optional) Additional plotting options.

Value

p [ggplot] A ggplot heatmap object with nice defaults.

Examples

1
plot_matrix(matrix(rnorm(2000)*100, 100, 200))

nlhuong/buds documentation built on May 17, 2019, 3:13 a.m.