Description Usage Arguments Methods (by class)
Creates a facetted plot of a raster or set of rasters using ggplot.
1 2 3 4 5 6 7 8 9 10 11 12 | gg_raster(x, labels = names(x), nrow = 1, highlight = 1, invert = FALSE)
## S4 method for signature 'RasterLayer'
gg_raster(x, labels, highlight, invert)
## S4 method for signature 'RasterStack'
gg_raster(x, labels = names(x), nrow = 1,
highlight = 1, invert = FALSE)
## S4 method for signature 'RasterBrick'
gg_raster(x, labels = names(x), nrow = 1,
highlight = 1, invert = FALSE)
|
x |
A Raster* object. |
labels |
Character vector. Facet labels. |
nrow |
Integer. Number of rows for facets of rasters. |
highlight |
Highlight a region of the raster by alter alpha level of some parts. |
invert |
Invert the highlighted region. |
RasterLayer
: plot a raster using gg_plot
RasterStack
: plot a raster using gg_plot
RasterBrick
: plot a raster using gg_plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.