Learn R Programming

⚠️There's a newer version (2.2-0) of this package.Take me there.

sp (version 1.5-0)

Classes and Methods for Spatial Data

Description

Classes and methods for spatial data; the classes document where the spatial location information resides, for 2D or 3D data. Utility functions are provided, e.g. for plotting data as maps, spatial selection, as well as methods for retrieving coordinates, for subsetting, print, summary, etc.

Copy Link

Version

Install

install.packages('sp')

Monthly Downloads

251,963

Version

1.5-0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Edzer Pebesma

Last Published

June 5th, 2022

Functions in sp (1.5-0)

SpatialPixels

define spatial grid
SpatialLines-class

a class for spatial lines
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
gridlines

Create N-S and E-W grid lines over a geographic region
SpatialPixels-class

Class "SpatialPixels"
loadMeuse

deprecated function to load the Meuse data set
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
aggregate

aggregation of spatial objects
gridIndex2nb

create neighbourhood (nb) object from grid geometry
SpatialLinesDataFrame-class

a class for spatial lines with attributes
SpatialMultiPoints-class

Class "SpatialMultiPoints"
Spatial-class

Class "Spatial"
bubble

Create a bubble plot of spatial data
zerodist

find point pairs with equal spatial coordinates
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
read.asciigrid

read/write to/from (ESRI) asciigrid format
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
bbox-methods

retrieve bbox from spatial data
SpatialPolygons-class

Class "SpatialPolygons"
mapasp

Calculate aspect ratio for plotting geographic maps; create nice degree axis labels
coordnames-methods

retrieve or assign coordinate names for classes in sp
GridTopology-class

Class "GridTopology"
image.SpatialGridDataFrame

Image or contour method for gridded spatial data; convert to and from image data structure
coordinates

set spatial coordinates to create a Spatial object, or retrieve spatial coordinates from a Spatial object
char2dms

Convert character vector to DMS-class object
recenter-methods

Methods for Function recenter in Package `sp'
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
select.spatial

select points spatially
sp-deprecated

Deprecated functions in sp
bpy.colors

blue-pink-yellow color scheme, which also prints well on black/white printers
gridded-methods

specify spatial data as being gridded, or find out whether they are
spDistsN1

Euclidean or Great Circle distance between points
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
polygons

sets spatial coordinates to create spatial data, or retrieves spatial coordinates
geometry-methods

Methods for retrieving the geometry from a composite (geometry + attributes) object
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
meuse

Meuse river data set
SpatialGrid-class

Class "SpatialGrid"
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
merge

Merge a Spatial* object having attributes with a data.frame
meuse.grid

Prediction Grid for Meuse Data Set
degAxis

axis with degrees
SpatialPoints-class

Class "SpatialPoints"
dimensions-methods

retrieve spatial dimensions from spatial data
meuse.riv

River Meuse outline
spTransform

spTransform for map projection and datum transformation
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
compassRose

Display a compass rose.
coordinates-methods

retrieve (or set) spatial coordinates
flip

rearrange data in SpatialPointsDataFrame or SpatialGridDataFrame for plotting with spplot (levelplot/xyplot wrapper)
disaggregate-methods

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
panel.spplot

panel and panel utility functions for spplot
stack

rearrange data in SpatialPointsDataFrame or SpatialGridDataFrame for plotting with spplot (levelplot/xyplot wrapper)
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
surfaceArea

Compute surface area of a digital elevation model.
point.in.polygon

do point(s) fall in a given polygon?
over-methods

consistent spatial overlay for points, grids and polygons
spChFIDs-methods

change feature IDs in spatial objects
spsample

sample point locations in (or on) a spatial object
spplot

Plot methods for spatial data with attributes
Lines-class

Class "Lines"
Polygon-class

Class "Polygon"
CRS-class

Class "CRS" of coordinate reference system arguments
sp

A package providing classes and methods for spatial data: points, lines, polygons and grids
DMS-class

Class "DMS" for degree, minute, decimal second values
Line

create objects of class Line or Lines
Polygons-class

Class "Polygons"
Line-class

Class "Line"
Rlogo

Rlogo jpeg image