File: plot-matrix.Rd

package info (click to toggle)
r-cran-latte 0.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 564 kB
  • sloc: makefile: 2
file content (43 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-matrix.R
\name{plot-matrix}
\alias{plot-matrix}
\alias{plot_matrix}
\title{Plot a matrix}
\usage{
plot_matrix(A)
}
\arguments{
\item{A}{A matrix}
}
\value{
a ggplot object
}
\description{
plot_matrix is a R variant of Matlab's \code{spy} function.
}
\examples{

# 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))

}

}
\author{
David Kahle \email{david@kahle.io}
}