gg.matrix | R Documentation |
Creates a tile geom for plotting a matrix
## S3 method for class 'matrix'
gg(data, mapping = NULL, ...)
data |
A |
mapping |
a set of aesthetic mappings created by |
... |
Arguments passed on to |
Requires the ggplot2
package.
A geom_tile
with reversed y scale.
Other geomes for inla and inlabru predictions:
gg()
,
gg.bru_prediction()
,
gg.data.frame()
if (require("ggplot2", quietly = TRUE)) {
A <- matrix(runif(100), nrow = 10)
ggplot() +
gg(A)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.