Learn R Programming

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

sp (version 1.1-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

189,773

Version

1.1-0

License

GPL (>= 2)

Maintainer

Edzer Pebesma

Last Published

April 24th, 2015

Functions in sp (1.1-0)

SpatialLines-class

a class for spatial lines
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
bbox-methods

retrieve bbox from spatial data
sp-deprecated

Deprecated functions in sp
coordinates

set spatial coordinates to create a Spatial object, or retrieve spatial coordinates from a Spatial object
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
DMS-class

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

Class "Polygons"
sp

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

create objects of class SpatialLines or SpatialLinesDataFrame
coordnames-methods

retrieve or assign coordinate names for classes in sp
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
gridlines

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

Class "GridTopology"
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
mapasp

Calculate aspect ratio for plotting geographic maps; create nice degree axis labels
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
SpatialPixels-class

Class "SpatialPixels"
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
over-methods

consistent spatial overlay for points, grids and polygons
dimensions-methods

retrieve spatial dimensions from spatial data
CRS-class

Class "CRS" of coordinate reference system arguments
aggregate

aggregation of spatial objects
polygons

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

Display a compass rose.
SpatialLinesDataFrame-class

a class for spatial lines with attributes
geometry-methods

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

Class "Polygon"
SpatialGrid-class

Class "SpatialGrid"
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
char2dms

Convert character vector to DMS-class object
Line-class

Class "Line"
image.SpatialGridDataFrame

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

Class "Lines"
Line

create objects of class Line or Lines
degAxis

axis with degrees
flip

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

Rlogo jpeg image
loadMeuse

deprecated function to load the Meuse data set
spChFIDs-methods

change feature IDs in spatial objects
SpatialPixels

define spatial grid
coordinates-methods

retrieve (or set) spatial coordinates
SpatialPoints-class

Class "SpatialPoints"
point.in.polygon

do point(s) fall in a given polygon?
meuse.riv

River Meuse outline
SpatialPixelsDataFrame

define spatial grid with attribute data
meuse

Meuse river data set
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
meuse.grid

Prediction Grid for Meuse Data Set
gridIndex2nb

create neighbourhood (nb) object from grid geometry
read.asciigrid

read/write to/from (ESRI) asciigrid format
select.spatial

select points spatially
SpatialPolygons-class

Class "SpatialPolygons"
Spatial-class

Class "Spatial"
surfaceArea

Compute surface area of a digital elevation model.
spTransform

spTransform for map projection and datum transformation
bpy.colors

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

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

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
panel.spplot

panel and panel utility functions for spplot
recenter-methods

Methods for Function recenter in Package `sp'
spplot

Plot methods for spatial data with attributes
bubble

Create a bubble plot of spatial data
merge

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

Split SpatialLines components at offset
spDistsN1

Euclidean or Great Circle distance between points
zerodist

find point pairs with equal spatial coordinates
spsample

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

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