| gg.matrix {inlabru} | R Documentation | 
Geom for matrix
Description
Creates a tile geom for plotting a matrix
Usage
## S3 method for class 'matrix'
gg(data, mapping = NULL, ...)
Arguments
data | 
 A   | 
mapping | 
 a set of aesthetic mappings created by   | 
... | 
 Arguments passed on to   | 
Details
Requires the ggplot2 package.
Value
A geom_tile with reversed y scale.
See Also
Other geomes for inla and inlabru predictions: 
gg(),
gg.bru_prediction(),
gg.data.frame(),
gm()
Examples
if (require("ggplot2", quietly = TRUE)) {
  A <- matrix(runif(100), nrow = 10)
  ggplot() +
    gg(A)
}
[Package inlabru version 2.11.1 Index]