Learn R Programming

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

sp (version 0.8-2)

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

198,490

Version

0.8-2

License

GPL version 2 or later

Maintainer

Edzer Pebesma

Last Published

February 1st, 2025

Functions in sp (0.8-2)

Line

create objects of class Line or Lines
coordinates

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

Class "SpatialPixels" ~~~
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
dimensions-methods

retrieve spatial dimensions from spatial data
bbox-methods

retrieve bbox from spatial data
meuse

Meuse river data set
overlay-methods

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

specify spatial data as being gridded, or find out whether they are
bpy.colors

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

place holder for transform methods in library spproj
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
SpatialPolygons-class

Class "SpatialPolygons"
DMS-class

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

Class "AttributeList"
SpatialPoints-class

Class "SpatialPoints" ~~~
Lines-class

Class "Lines"
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
overlay

spatial overlay for points, grids and polygons
Polygons-class

Class "Polygons"
Polygon-class

Class "Polygon"
contourLines2SLDF

Converter functions to build SpatialLinesDataFrame objects
image.SpatialGridDataFrame

image gridded spatial data, or convert to format for image
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
Spatial-class

Class "Spatial" ~~~
panel.spplot

panel and panel utility functions for spplot
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
Rlogo

Rlogo jpeg image
point.in.polygon

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

Retrieve polygons from SpatialPolygonsDataFrame object
read.asciigrid

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

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

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

a class for spatial lines
sp

A package providing classes and methods for spatial data: points, lines, polygons and grids
SpatialPixels

define spatial grid
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
SpatialLinesDataFrame-class

a class for spatial lines with attributes
zerodist

find point pairs with equal spatial coordinates
nowrapSpatialLines

Split SpatialLines components at offset
degAxis

axis with degrees
spplot-methods

Methods for Function spplot in Package `sp'
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
SpatialGrid-class

Class "SpatialGrid" ~~~
GridTopology-class

Class "GridTopology" ~~~
CRS-class

Class "CRS" of coordinate reference system arguments
select.spatial

select points spatially
stack

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

retrieve or assign coordinate names for classes in sp
spsample

sample point locations within a spatial region
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame" ~~~
spDistsN1

Euclidean or Great Circle distance between points
char2dms

Convert character vector to DMS-class object
bubble

Create a bubble plot of spatial data
coordinates-methods

retrieves spatial coordinates
spsample-methods

sampling point locations in (or on) a spatial object
mapasp

Calculate aspect ratio for plotting geographic maps
gridlines

Create N-S and E-W grid lines over a geographic region
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
Line-class

Class "Line"
spplot

Lattice (trellis) plots for spatial data
meuse.riv

River Meuse outline
meuse.grid

Prediction Grid for Meuse Data Set