Learn R Programming

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

sp (version 0.9-17)

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

187,279

Version

0.9-17

License

GPL (>= 2)

Maintainer

Edzer Pebesma

Last Published

February 1st, 2025

Functions in sp (0.9-17)

sp

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

Class "CRS" of coordinate reference system arguments
Rlogo

Rlogo jpeg image
coordnames-methods

retrieve or assign coordinate names for classes in sp
degAxis

axis with degrees
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame" ~~~
Line

create objects of class Line or Lines
read.asciigrid

read/write to/from (ESRI) asciigrid format
GridTopology-class

Class "GridTopology" ~~~
Line-class

Class "Line"
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
Spatial-class

Class "Spatial"
SpatialLines-class

a class for spatial lines
recenter-methods

Methods for Function recenter in Package `sp'
char2dms

Convert character vector to DMS-class object
Lines-class

Class "Lines"
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
gridlines

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

find point pairs with equal spatial coordinates
mapasp

Calculate aspect ratio for plotting geographic maps
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialPixels

define spatial grid
SpatialGrid-class

Class "SpatialGrid" ~~~
coordinates-methods

retrieve (or set) spatial coordinates
SpatialPixels-class

Class "SpatialPixels" ~~~
SpatialPixelsDataFrame

define spatial grid with attribute data
overlay-methods

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

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
overlay

spatial overlay for points, grids and polygons
meuse.riv

River Meuse outline
spsample

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

sets spatial coordinates to create spatial data, or retrieves spatial coordinates
SpatialPoints-class

Class "SpatialPoints" ~~~
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
panel.spplot

panel and panel utility functions for spplot
DMS-class

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

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

Plot methods for spatial data with attributes
meuse.grid

Prediction Grid for Meuse Data Set
nowrapSpatialLines

Split SpatialLines components at offset
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
gridded-methods

specify spatial data as being gridded, or find out whether they are
point.in.polygon

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

Class "SpatialPolygons"
bpy.colors

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

Class "SpatialPointsDataFrame"
image.SpatialGridDataFrame

image gridded spatial data, or convert to format for image
meuse

Meuse river data set
bubble

Create a bubble plot of spatial data
select.spatial

select points spatially
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
Polygons-class

Class "Polygons"
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
bbox-methods

retrieve bbox from spatial data
spDistsN1

Euclidean or Great Circle distance between points
polygons

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

retrieve spatial dimensions from spatial data
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
Polygon-class

Class "Polygon"
SpatialLinesDataFrame-class

a class for spatial lines with attributes