Learn R Programming

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

sp (version 1.0-9)

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

1.0-9

License

GPL (>= 2)

Maintainer

Edzer Pebesma

Last Published

April 22nd, 2013

Functions in sp (1.0-9)

Polygon-class

Class "Polygon"
read.asciigrid

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

retrieve (or set) spatial coordinates
GridTopology-class

Class "GridTopology"
Spatial-class

Class "Spatial"
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
bubble

Create a bubble plot of spatial data
DMS-class

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

Class "SpatialPixels"
Polygons-class

Class "Polygons"
spChFIDs-methods

change feature IDs in spatial objects
zerodist

find point pairs with equal spatial coordinates
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
meuse.grid

Prediction Grid for Meuse Data Set
point.in.polygon

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

create objects of class Line or Lines
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
dimensions-methods

retrieve spatial dimensions from spatial data
gridlines

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

Class "SpatialPolygons"
over-methods

consistent spatial overlay for points, grids and polygons
select.spatial

select points spatially
mapasp

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

create objects of class SpatialLines or SpatialLinesDataFrame
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
Lines-class

Class "Lines"
coordnames-methods

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

specify spatial data as being gridded, or find out whether they are
spsample

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

Euclidean or Great Circle distance between points
SpatialPoints-class

Class "SpatialPoints"
bpy.colors

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

define spatial grid with attribute data
panel.spplot

panel and panel utility functions for spplot
meuse

Meuse river data set
degAxis

axis with degrees
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
surfaceArea

Compute surface area of a digital elevation model.
SpatialGrid-class

Class "SpatialGrid"
SpatialPixels

define spatial grid
nowrapSpatialLines

Split SpatialLines components at offset
spplot

Plot methods for spatial data with attributes
geometry-methods

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

create neighbourhood (nb) object from grid geometry
Line-class

Class "Line"
sp

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

deprecated function to load the Meuse data set
CRS-class

Class "CRS" of coordinate reference system arguments
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
meuse.riv

River Meuse outline
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
spTransform

spTransform for map projection and datum transformation
SpatialLines-class

a class for spatial lines
recenter-methods

Methods for Function recenter in Package `sp'
image.SpatialGridDataFrame

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

Rlogo jpeg image
stack

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

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

Convert character vector to DMS-class object
sp-deprecated

Deprecated functions in sp
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
compassRose

Display a compass rose.
polygons

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

retrieve bbox from spatial data
SpatialLinesDataFrame-class

a class for spatial lines with attributes
flip

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