Learn R Programming

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

sp (version 2.0-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. From this version, evolution status is set to '2L' using 'sf' in place of 'rgdal', see for details. Retiring packages 'maptools', 'rgdal' and 'rgeos' will be dropped by October 2023.

Copy Link

Version

Install

install.packages('sp')

Monthly Downloads

171,945

Version

2.0-0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Edzer Pebesma

Last Published

June 22nd, 2023

Functions in sp (2.0-0)

SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialLines-class

a class for spatial lines
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
SpatialLinesDataFrame-class

a class for spatial lines with attributes
SpatialMultiPoints-class

Class "SpatialMultiPoints"
Spatial-class

Class "Spatial"
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialPixels

define spatial grid
SpatialGrid-class

Class "SpatialGrid"
SpatialPolygons-class

Class "SpatialPolygons"
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
SpatialPixels-class

Class "SpatialPixels"
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
bbox-methods

retrieve bbox from spatial data
char2dms

Convert character vector to DMS-class object
SpatialPoints-class

Class "SpatialPoints"
bubble

Create a bubble plot of spatial data
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
bpy.colors

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

axis with degrees
compassRose

Display a compass rose.
dimensions-methods

retrieve spatial dimensions from spatial data
disaggregate-methods

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
flip

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

Class "SpatialPointsDataFrame"
coordinates-methods

retrieve (or set) spatial coordinates
aggregate

aggregation of spatial objects
gridded-methods

specify spatial data as being gridded, or find out whether they are
elide-methods

Methods for Function elide in Package `maptools'
mapasp

Calculate aspect ratio for plotting geographic maps; create nice degree axis labels
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
meuse.grid

Prediction Grid for Meuse Data Set
coordinates

set spatial coordinates to create a Spatial object, or retrieve spatial coordinates from a Spatial object
geometry-methods

Methods for retrieving the geometry from a composite (geometry + attributes) object
read.asciigrid

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

Meuse river data set
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
gridlines

Create N-S and E-W grid lines over a geographic region
coordnames-methods

retrieve or assign coordinate names for classes in sp
gridIndex2nb

create neighbourhood (nb) object from grid geometry
is.projected

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

select points spatially
over-methods

consistent spatial overlay for points, grids and polygons
sp-deprecated

Deprecated functions in sp
point.in.polygon

do point(s) fall in a given polygon?
image.SpatialGridDataFrame

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

Merge a Spatial* object having attributes with a data.frame
spsample

sample point locations in (or on) a spatial object
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
panel.spplot

panel and panel utility functions for spplot
spDistsN1

Euclidean or Great Circle distance between points
polygons

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

change feature IDs in spatial objects
spTransform

spTransform for map projection and datum transformation
spplot

Plot methods for spatial data with attributes
meuse.riv

River Meuse outline
loadMeuse

deprecated function to load the Meuse data set
recenter-methods

Methods for Function recenter in Package `sp'
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
zerodist

find point pairs with equal spatial coordinates
stack

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

Compute surface area of a digital elevation model.
Lines-class

Class "Lines"
Rlogo

Rlogo jpeg image
GridTopology-class

Class "GridTopology"
Polygon-class

Class "Polygon"
Polygons-class

Class "Polygons"
DMS-class

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

Class "Line"
sp

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

Class "CRS" of coordinate reference system arguments
Line

create objects of class Line or Lines