Learn R Programming

inlabru (version 2.11.1)

gg.SpatRaster: Geom wrapper for SpatRaster objects

Description

Convenience wrapper function for tidyterra::geom_spatraster(). Requires the ggplot2 and tidyterra packages.

Usage

# S3 method for SpatRaster
gg(data, ...)

Value

The output from `geom_spatraster.

Arguments

data

A SpatRaster object.

...

Arguments passed on to geom_spatraster.

See Also

Other geomes for spatial data: gg(), gg.SpatialGridDataFrame(), gg.SpatialLines(), gg.SpatialPixels(), gg.SpatialPixelsDataFrame(), gg.SpatialPoints(), gg.SpatialPolygons(), gg.sf(), gm()