graticule function

Create a graticule

Create a graticule

Create a graticule. That is, a grid of lon/lat lines that can be used to on a projected map.

The object returned, a SpatGraticule, can be plotted with plot and lines. There is also a crop method. methods

graticule(lon=30, lat=30, crs="")

Arguments

  • lon: numeric. Either a single number (the interval between longitudes), or a vector with longitudes
  • lat: numeric. Either a single number (the interval between latitudes), or a vector with latitudes
  • crs: character. The coordinate reference system to use

Returns

SpatGraticule

See Also

plot<SpatGraticule>.

Examples

g <- graticule(60, 30, crs="+proj=robin") g graticule(90, c(-90, -60, -23.5, 0, 23.5, 60, 90), crs="+proj=robin")
  • Maintainer: Robert J. Hijmans
  • License: GPL (>= 3)
  • Last published: 2025-02-26