Learn R Programming

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

sp (version 0.8-20)

classes and methods for spatial data

Description

A package that provides 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

256,184

Version

0.8-20

License

GPL version 2 or later

Maintainer

Edzer Pebesma

Last Published

February 1st, 2025

Functions in sp (0.8-20)

Line-class

Class "Line"
panel.spplot

panel and panel utility functions for spplot
Spatial-class

Class "Spatial" ~~~
AttributeList-class

Class "AttributeList"
sp

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

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

Class "SpatialPixelsDataFrame" ~~~
bubble

Create a bubble plot of spatial data
SpatialLinesDataFrame-class

a class for spatial lines with attributes
Polygon-class

Class "Polygon"
SpatialPixels

define spatial grid
image.SpatialGridDataFrame

image gridded spatial data, or convert to format for image
SpatialGrid-class

Class "SpatialGrid" ~~~
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialLines-class

a class for spatial lines
Lines-class

Class "Lines"
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
GridTopology-class

Class "GridTopology" ~~~
contourLines2SLDF

Converter functions to build SpatialLinesDataFrame objects
Polygons-class

Class "Polygons"
char2dms

Convert character vector to DMS-class object
Rlogo

Rlogo jpeg image
point.in.polygon

do point(s) fall in a given polygon?
SpatialPixels-class

Class "SpatialPixels" ~~~
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
coordinates

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

sets spatial coordinates to create spatial data, or retrieves spatial coordinates
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
is.projected

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

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

Class "SpatialPointsDataFrame"
read.asciigrid

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

Euclidean or Great Circle distance between points
SpatialPolygons-class

Class "SpatialPolygons"
select.spatial

select points spatially
nowrapSpatialLines

Split SpatialLines components at offset
coordinates-methods

retrieve (or set) spatial coordinates
mapasp

Calculate aspect ratio for plotting geographic maps
overlay

spatial overlay for points, grids and polygons
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
spplot

Plot methods for spatial data with attributes
spsample

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

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

Class "SpatialPoints" ~~~
stack

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

retrieve bbox from spatial data
gridlines

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

Methods for Function recenter in Package `sp'
zerodist

find point pairs with equal spatial coordinates
transform-methods

place holder for transform methods in library spproj
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
bpy.colors

blue-pink-yellow color scheme that prints well on black/white printers
Line

create objects of class Line or Lines
dimensions-methods

retrieve spatial dimensions from spatial data
overlay-methods

Methods for spatially overlay-ing points (grids) and polygons layers
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
degAxis

axis with degrees
gridded-methods

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

Meuse river data set
meuse.grid

Prediction Grid for Meuse Data Set
meuse.riv

River Meuse outline