powered by
Creates a tile geom for plotting a matrix
# S3 method for matrix gg(data, mapping = NULL, ...)
A geom_tile with reversed y scale.
geom_tile
A matrix object.
matrix
a set of aesthetic mappings created by aes. These are passed on to geom_tile.
aes
Arguments passed on to geom_tile.
Requires the ggplot2 package.
ggplot2
Other geomes for inla and inlabru predictions: gg(), gg.bru_prediction(), gg.data.frame(), gm()
gg()
gg.bru_prediction()
gg.data.frame()
gm()
if (require("ggplot2", quietly = TRUE)) { A <- matrix(runif(100), nrow = 10) ggplot() + gg(A) }
Run the code above in your browser using DataLab