Learn R Programming

sp (version 2.2-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, 'rgdal', 'maptools', and 'rgeos' are no longer used at all, see for details.

Copy Link

Version

Install

install.packages('sp')

Monthly Downloads

173,411

Version

2.2-0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Edzer Pebesma

Last Published

February 1st, 2025

Functions in sp (2.2-0)

SpatialLines-class

a class for spatial lines
SpatialGrid-class

Class "SpatialGrid"
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialMultiPoints-class

Class "SpatialMultiPoints"
SpatialPixels

define spatial grid
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
SpatialPixels-class

Class "SpatialPixels"
SpatialPoints-class

Class "SpatialPoints"
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
char2dms

Convert character vector to DMS-class object
read.asciigrid

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

retrieve bbox from spatial data
geometry-methods

Methods for retrieving the geometry from a composite (geometry + attributes) object
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
aggregate

aggregation of spatial objects
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
bubble

Create a bubble plot of spatial data
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
SpatialPolygons-class

Class "SpatialPolygons"
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
bpy.colors

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

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

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
compassRose

Display a compass rose.
loadMeuse

deprecated function to load the Meuse data set
meuse.grid

Prediction Grid for Meuse Data Set
image.SpatialGridDataFrame

Image or contour method for gridded spatial data; convert to and from image data structure
dimensions-methods

retrieve spatial dimensions from spatial data
gridded-methods

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

axis with degrees
coordinates

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

retrieve or assign coordinate names for classes in sp
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
coordinates-methods

retrieve (or set) spatial coordinates
point.in.polygon

do point(s) fall in a given polygon?
meuse.grid_ll

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

panel and panel utility functions for spplot
polygons

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

Retrieve polygons from SpatialPolygonsDataFrame object
gridIndex2nb

create neighbourhood (nb) object from grid geometry
sp-deprecated

Deprecated functions in sp
gridlines

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

Euclidean or Great Circle distance between points
spChFIDs-methods

change feature IDs in spatial objects
sp2Mondrian

write map data for Mondrian
meuse.riv

River Meuse outline
surfaceArea

Compute surface area of a digital elevation model.
zerodist

find point pairs with equal spatial coordinates
elide-methods

Methods for Function elide in Package `maptools'
over-methods

consistent spatial overlay for points, grids and polygons
spTransform

spTransform for map projection and datum transformation
flip

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

Plot methods for spatial data with attributes
merge

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

Meuse river data set
recenter-methods

Methods for Function recenter in Package `sp'
select.spatial

select points spatially
stack

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

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

create objects of class Line or Lines
Lines-class

Class "Lines"
Rlogo

Rlogo jpeg image
GridsDatums

Grids and Datums PE&RS listing
sp

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

Class "Spatial"
GridTopology-class

Class "GridTopology"
Line-class

Class "Line"
Polygon-class

Class "Polygon"
Polygons-class

Class "Polygons"
DMS-class

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

Class "CRS" of coordinate reference system arguments
SpatialLinesDataFrame-class

a class for spatial lines with attributes
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"