plot-matrix | R Documentation |
plot_matrix is a R variant of Matlab's spy
function.
plot_matrix(A)
A |
A matrix |
a ggplot object
David Kahle david@kahle.io
# 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))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.