Learn R Programming

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

sp (version 1.2-0)

Classes and Methods for Spatial Data

Description

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

243,169

Version

1.2-0

License

GPL (>= 2)

Maintainer

Edzer Pebesma

Last Published

September 8th, 2015

Functions in sp (1.2-0)

Line-class

Class "Line"
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
coordinates

set spatial coordinates to create a Spatial object, or retrieve spatial coordinates from a Spatial object
meuse.grid

Prediction Grid for Meuse Data Set
degAxis

axis with degrees
mapasp

Calculate aspect ratio for plotting geographic maps; create nice degree axis labels
sp

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

Methods for retrieving the geometry from a composite (geometry + attributes) object
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
char2dms

Convert character vector to DMS-class object
Polygons-class

Class "Polygons"
over-methods

consistent spatial overlay for points, grids and polygons
image.SpatialGridDataFrame

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

Class "CRS" of coordinate reference system arguments
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
Polygon-class

Class "Polygon"
aggregate

aggregation of spatial objects
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
SpatialLinesDataFrame-class

a class for spatial lines with attributes
GridTopology-class

Class "GridTopology"
Lines-class

Class "Lines"
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
bubble

Create a bubble plot of spatial data
SpatialPixels-class

Class "SpatialPixels"
Spatial-class

Class "Spatial"
bbox-methods

retrieve bbox from spatial data
SpatialPolygons-class

Class "SpatialPolygons"
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
Rlogo

Rlogo jpeg image
SpatialGrid-class

Class "SpatialGrid"
SpatialLines-class

a class for spatial lines
recenter-methods

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

Class "SpatialPixelsDataFrame"
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
gridded-methods

specify spatial data as being gridded, or find out whether they are
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
meuse.riv

River Meuse outline
dimensions-methods

retrieve spatial dimensions from spatial data
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialMultiPoints-class

Class "SpatialMultiPoints"
select.spatial

select points spatially
DMS-class

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

Class "SpatialGridDataFrame"
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
compassRose

Display a compass rose.
SpatialPixels

define spatial grid
gridlines

Create N-S and E-W grid lines over a geographic region
bpy.colors

blue-pink-yellow color scheme, which also prints well on black/white printers
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
spplot

Plot methods for spatial data with attributes
coordnames-methods

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

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
meuse

Meuse river data set
coordinates-methods

retrieve (or set) spatial coordinates
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
panel.spplot

panel and panel utility functions for spplot
Line

create objects of class Line or Lines
flip

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

Class "SpatialPoints"
read.asciigrid

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

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
polygons

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

deprecated function to load the Meuse data set
merge

Merge a Spatial* object having attributes with a data.frame
stack

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

spTransform for map projection and datum transformation
point.in.polygon

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

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

create neighbourhood (nb) object from grid geometry
zerodist

find point pairs with equal spatial coordinates
spDistsN1

Euclidean or Great Circle distance between points
surfaceArea

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

change feature IDs in spatial objects
sp-deprecated

Deprecated functions in sp