Learn R Programming

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

sp (version 0.9-76)

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-76

License

GPL (>= 2)

Maintainer

Edzer Pebesma

Last Published

December 19th, 2010

Functions in sp (0.9-76)

Lines-class

Class "Lines"
SpatialPixels

define spatial grid
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
CRS-class

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

Class "GridTopology" ~~~
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
Line

create objects of class Line or Lines
gridded-methods

specify spatial data as being gridded, or find out whether they are
SpatialLines-class

a class for spatial lines
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
DMS-class

Class "DMS" for degree, minute, decimal second values
coordnames-methods

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

Class "SpatialPointsDataFrame"
compassRose

Display a compass rose.
SpatialPixels-class

Class "SpatialPixels" ~~~
polygons

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

Class "SpatialPolygons"
panel.spplot

panel and panel utility functions for spplot
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
Polygon-class

Class "Polygon"
bbox-methods

retrieve bbox from spatial data
over-methods

consistent spatial overlay for points, grids and polygons
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
meuse.grid

Prediction Grid for Meuse Data Set
SpatialLinesDataFrame-class

a class for spatial lines with attributes
degAxis

axis with degrees
SpatialPoints-class

Class "SpatialPoints" ~~~
image.SpatialGridDataFrame

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

Class "SpatialPixelsDataFrame" ~~~
mapasp

Calculate aspect ratio for plotting geographic maps
read.asciigrid

read/write to/from (ESRI) asciigrid format
bpy.colors

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

spatial overlay for points, grids and polygons
spsample

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

Rlogo jpeg image
Line-class

Class "Line"
meuse

Meuse river data set
char2dms

Convert character vector to DMS-class object
Polygons-class

Class "Polygons"
sp

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

retrieve (or set) spatial coordinates
geometry-methods

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

Retrieve polygons from SpatialPolygonsDataFrame object
nowrapSpatialLines

Split SpatialLines components at offset
point.in.polygon

do point(s) fall in a given polygon?
coordinates

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

retrieve spatial dimensions from spatial data
meuse.riv

River Meuse outline
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
loadMeuse

load the Meuse data set
SpatialGrid-class

Class "SpatialGrid" ~~~
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
flip

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

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

find point pairs with equal spatial coordinates
bubble

Create a bubble plot of spatial data
spDistsN1

Euclidean or Great Circle distance between points
select.spatial

select points spatially
stack

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

Class "Spatial"
spChFIDs-methods

change feature IDs in spatial objects
recenter-methods

Methods for Function recenter in Package `sp'
surfaceArea

Compute surface area of a digital elevation model.
spplot

Plot methods for spatial data with attributes
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
gridlines

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

Making SpatialPolygons objects
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates