deg_grid: Decimal degree grid from UTM projected spatial objects

View source: R/deg_grid.R

deg_gridR Documentation

Decimal degree grid from UTM projected spatial objects

Description

Outputs a list of grid lines that can be used to plot a grid on maps. Requires a spatial object projected using UTM coordinates

Usage

deg_grid(
  dat,
  round.lat = FALSE,
  n.lat.grid = 3,
  round.lon = FALSE,
  n.lon.grid = 3,
  n.points = 30
)

Arguments

dat

basemapLimits object

round.lat

specifying the level of rounding to be used to plot latitude grid lines. Overrides n.lat.grid

n.lat.grid

number of latitude grid lines. Alternatively use round.lat

round.lon

specifying the level of rounding to be used to plot longitude grid lines. Overrides n.lon.grid

n.lon.grid

number of longitude grid lines. Alternatively use round.lon

n.points

number of points used in creating the grid lines. The more points, the smoother the lines.

Details

This is an internal function, which is automatically run by the basemap function. Common users do not need to worry about these details.

Value

Returns a UTM coodrinate grid.

Author(s)

Mikko Vihtakari

See Also

basemap


MikkoVihtakari/PlotSvalbard documentation built on July 12, 2022, 10:20 a.m.