Learn R Programming

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

sp (version 1.4-7)

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

198,490

Version

1.4-7

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Edzer Pebesma

Last Published

April 20th, 2022

Functions in sp (1.4-7)

Lines-class

Class "Lines"
Polygons-class

Class "Polygons"
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialLines-class

a class for spatial lines
aggregate

aggregation of spatial objects
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
SpatialPixels

define spatial grid
Rlogo

Rlogo jpeg image
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
dimensions-methods

retrieve spatial dimensions from spatial data
degAxis

axis with degrees
SpatialPixels-class

Class "SpatialPixels"
sp

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

Class "SpatialMultiPoints"
bubble

Create a bubble plot of spatial data
image.SpatialGridDataFrame

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

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
spDistsN1

Euclidean or Great Circle distance between points
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
Spatial-class

Class "Spatial"
SpatialGrid-class

Class "SpatialGrid"
CRS-class

Class "CRS" of coordinate reference system arguments
spTransform

spTransform for map projection and datum transformation
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
char2dms

Convert character vector to DMS-class object
disaggregate-methods

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
bpy.colors

blue-pink-yellow color scheme, which also prints well on black/white printers
point.in.polygon

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

consistent spatial overlay for points, grids and polygons
panel.spplot

panel and panel utility functions for spplot
meuse.riv

River Meuse outline
surfaceArea

Compute surface area of a digital elevation model.
bbox-methods

retrieve bbox from spatial data
stack

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

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

Class "SpatialPoints"
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
compassRose

Display a compass rose.
coordinates

set spatial coordinates to create a Spatial object, or retrieve spatial coordinates from a Spatial object
read.asciigrid

read/write to/from (ESRI) asciigrid format
coordnames-methods

retrieve or assign coordinate names for classes in sp
coordinates-methods

retrieve (or set) spatial coordinates
geometry-methods

Methods for retrieving the geometry from a composite (geometry + attributes) object
merge

Merge a Spatial* object having attributes with a data.frame
sp-deprecated

Deprecated functions in sp
meuse

Meuse river data set
gridded-methods

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

change feature IDs in spatial objects
polygons

sets spatial coordinates to create spatial data, or retrieves spatial coordinates
mapasp

Calculate aspect ratio for plotting geographic maps; create nice degree axis labels
loadMeuse

deprecated function to load the Meuse data set
zerodist

find point pairs with equal spatial coordinates
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
Line-class

Class "Line"
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialPolygons-class

Class "SpatialPolygons"
SpatialLinesDataFrame-class

a class for spatial lines with attributes
Line

create objects of class Line or Lines
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
gridIndex2nb

create neighbourhood (nb) object from grid geometry
gridlines

Create N-S and E-W grid lines over a geographic region
meuse.grid

Prediction Grid for Meuse Data Set
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
select.spatial

select points spatially
spplot

Plot methods for spatial data with attributes
spsample

sample point locations in (or on) a spatial object
recenter-methods

Methods for Function recenter in Package `sp'
DMS-class

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

Class "GridTopology"
Polygon-class

Class "Polygon"