Learn R Programming

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

sp (version 1.0-5)

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

1.0-5

License

GPL (>= 2)

Maintainer

Edzer Pebesma

Last Published

December 21st, 2012

Functions in sp (1.0-5)

Polygon-class

Class "Polygon"
SpatialPixels

define spatial grid
degAxis

axis with degrees
panel.spplot

panel and panel utility functions for spplot
gridlines

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

define spatial grid with attribute data
meuse

Meuse river data set
spplot

Plot methods for spatial data with attributes
overlay-methods

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

do point(s) fall in a given polygon?
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
overlay

spatial overlay for points, grids and polygons
Lines-class

Class "Lines"
Spatial-class

Class "Spatial"
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
gridded-methods

specify spatial data as being gridded, or find out whether they are
meuse.grid

Prediction Grid for Meuse Data Set
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
Rlogo

Rlogo jpeg image
surfaceArea

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

retrieve spatial dimensions from spatial data
char2dms

Convert character vector to DMS-class object
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
Polygons-class

Class "Polygons"
polygons

sets spatial coordinates to create spatial data, or retrieves spatial coordinates
select.spatial

select points spatially
bubble

Create a bubble plot of spatial data
Line-class

Class "Line"
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
image.SpatialGridDataFrame

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

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

create objects of class Line or Lines
DMS-class

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

Methods for retrieving the geometry from a composite (geometry + attributes) object
CRS-class

Class "CRS" of coordinate reference system arguments
bbox-methods

retrieve bbox from spatial data
stack

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

a class for spatial lines with attributes
SpatialPolygons-class

Class "SpatialPolygons"
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
nowrapSpatialLines

Split SpatialLines components at offset
coordinates-methods

retrieve (or set) spatial coordinates
compassRose

Display a compass rose.
zerodist

find point pairs with equal spatial coordinates
bpy.colors

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

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

a class for spatial lines
gridIndex2nb

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

Class "SpatialPointsDataFrame"
over-methods

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

Class "SpatialPixelsDataFrame"
loadMeuse

load the Meuse data set
spChFIDs-methods

change feature IDs in spatial objects
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
GridTopology-class

Class "GridTopology"
spsample

sample point locations in (or on) a spatial object
read.asciigrid

read/write to/from (ESRI) asciigrid format
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
SpatialGrid-class

Class "SpatialGrid"
SpatialPoints-class

Class "SpatialPoints"
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
SpatialPixels-class

Class "SpatialPixels"
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
meuse.riv

River Meuse outline
coordinates

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

Calculate aspect ratio for plotting geographic maps
recenter-methods

Methods for Function recenter in Package `sp'
spDistsN1

Euclidean or Great Circle distance between points
coordnames-methods

retrieve or assign coordinate names for classes in sp