gm is a wrapper for the gg method. It will take the first argument and transform its coordinate system to latitude and longitude. Thereafter, gg is called using the transformed data and the arguments provided via .... gm is intended to replace gg whenever the data is supposed to be plotted over a spatial map generated by gmap, which only works if the coordinate system is latitude/longitude.

## Usage

gm(data, ...)

## Arguments

data

an object for which to generate a geom.

...

Arguments passed on to gg().

## Value

The form of the value returned by gm depends on the class of its argument. See the documentation of the particular methods for details of what is produced by that method.

Other geomes for inla and inlabru predictions: gg.data.frame(), gg.matrix(), gg.prediction(), gg()

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

Other geomes for meshes: gg.inla.mesh.1d(), gg.inla.mesh(), gg()

Other geomes for Raster data: gg.RasterLayer(), gg()

## Examples

if (FALSE) {
if (require("ggplot2", quietly = TRUE) &&
require(ggpolypath, quietly = TRUE)) {
gmap(gorillas$nests, maptype = "satellite") + gm(gorillas$boundary) +