plot-matrix: Plot a matrix

Description Usage Arguments Value Author(s) Examples

Description

plot_matrix is a R variant of Matlab's spy function.

Usage

1

Arguments

A

A matrix

Value

a ggplot object

Author(s)

David Kahle david@kahle.io

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# the no-three-way interaction configuration
(A <- kprod(ones(1,3), diag(3), ones(3)))
plot_matrix(A)


if (has_4ti2()) {

plot_matrix(markov(A))

(A <- genmodel(c(2L, 2L), list(1L, 2L)))
plot_matrix(A)
plot_matrix(markov(A))

(A <- genmodel(c(5L, 5L), list(1L, 2L)))
plot_matrix(A)
plot_matrix(markov(A))

}

latte documentation built on May 1, 2019, 7:29 p.m.

Related to plot-matrix in latte...