Learn R Programming

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

sp (version 0.9-98)

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

License

GPL (>= 2)

Maintainer

Edzer Pebesma

Last Published

March 27th, 2012

Functions in sp (0.9-98)

SpatialGrid-class

Class "SpatialGrid"
DMS-class

Class "DMS" for degree, minute, decimal second values
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
coordinates-methods

retrieve (or set) spatial coordinates
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
Rlogo

Rlogo jpeg image
meuse.riv

River Meuse outline
SpatialPixels-class

Class "SpatialPixels"
polygons

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

define spatial grid
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
SpatialPoints-class

Class "SpatialPoints"
flip

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

Class "SpatialPolygons"
char2dms

Convert character vector to DMS-class object
coordnames-methods

retrieve or assign coordinate names for classes in sp
dimensions-methods

retrieve spatial dimensions from spatial data
panel.spplot

panel and panel utility functions for spplot
Line-class

Class "Line"
SpatialLines-class

a class for spatial lines
spChFIDs-methods

change feature IDs in spatial objects
coordinates

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

Split SpatialLines components at offset
bpy.colors

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

create objects of class SpatialPoints or SpatialPointsDataFrame
bubble

Create a bubble plot of spatial data
SpatialLinesDataFrame-class

a class for spatial lines with attributes
surfaceArea

Compute surface area of a digital elevation model.
gridded-methods

specify spatial data as being gridded, or find out whether they are
overlay-methods

Methods for spatially overlay-ing points (grids) and polygons layers
point.in.polygon

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

Retrieve polygons from SpatialPolygonsDataFrame object
mapasp

Calculate aspect ratio for plotting geographic maps
bbox-methods

retrieve bbox from spatial data
geometry-methods

Methods for retrieving the geometry from a composite (geometry + attributes) object
degAxis

axis with degrees
image.SpatialGridDataFrame

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

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

Meuse river data set
Lines-class

Class "Lines"
CRS-class

Class "CRS" of coordinate reference system arguments
spplot

Plot methods for spatial data with attributes
Spatial-class

Class "Spatial"
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
sp

A package providing classes and methods for spatial data: points, lines, polygons and grids
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
read.asciigrid

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

Methods for Function recenter in Package `sp'
meuse.grid

Prediction Grid for Meuse Data Set
GridTopology-class

Class "GridTopology"
spDistsN1

Euclidean or Great Circle distance between points
over-methods

consistent spatial overlay for points, grids and polygons
stack

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

create neighbourhood (nb) object from grid geometry
zerodist

find point pairs with equal spatial coordinates
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
gridlines

Create N-S and E-W grid lines over a geographic region
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
select.spatial

select points spatially
compassRose

Display a compass rose.
Line

create objects of class Line or Lines
Polygons-class

Class "Polygons"
loadMeuse

load the Meuse data set
Polygon-class

Class "Polygon"
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
overlay

spatial overlay for points, grids and polygons