Learn R Programming

lares (version 4.7)

geoGrid: Check, Cross, and Plot Coordinates with Polygons

Description

This function checks a series of coordinates and return a join with the information of each coordinate and its respective grid. Note that the coords and shapes coordinates MUST have the same lon/lat reference system for it to work succesfully.

Usage

geoGrid(coords, map, fix_coords = FALSE, plot = FALSE, all = FALSE,
  alpha = 0.3)

Arguments

coords

Dataframe. Dataframe containing at least langitud and latitud data

map

SpatialPolygonsDataFrame or .shp directory

fix_coords

Boolean. Transform and fix coordinates system?

plot

Boolean. Return plot with coordinates inside the grid?

all

Boolean. Include all coordinates in plot, i.e. only the ones who are inside the grids?

alpha

Numeric. Points transparency for the plot

See Also

Other Geographical: geoAddress, geoMap, geoStratum