plot_matrix {matricks} | R Documentation |
Plot a matrix
Description
This function allows us to plot matrices easily
Usage
plot_matrix(x, ...)
## S3 method for class 'matrix'
plot(x, ...)
Arguments
x |
a matrix |
... |
for S3 generic API consistency; does nothing |
Value
a ggplot object
Examples
T <- TRUE; F <- FALSE
x1 <- m(T, T, T, F, T |
T, T, F, T, T |
F, T, T, T, F |
T, T, T, T, T |
F, F, T, T, T |
F, T, T, T, F)
plot_matrix(x1)
x2 <- m(T, T, T, F, T |
T, T, F, T, T )
plot(x2)
x3 <- m(runif(3) | runif(3) | runif(3))
plot(x3)
[Package matricks version 0.8.2 Index]