Learn R Programming

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

sp (version 1.2-2)

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

234,361

Version

1.2-2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Edzer Pebesma

Last Published

February 5th, 2016

Functions in sp (1.2-2)

Lines-class

Class "Lines"
SpatialLinesDataFrame-class

a class for spatial lines with attributes
SpatialGrid-class

Class "SpatialGrid"
image.SpatialGridDataFrame

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

Rlogo jpeg image
CRS-class

Class "CRS" of coordinate reference system arguments
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialPolygons-class

Class "SpatialPolygons"
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
flip

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

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

Class "SpatialMultiPoints"
DMS-class

Class "DMS" for degree, minute, decimal second values
merge

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

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
degAxis

axis with degrees
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
Polygons-class

Class "Polygons"
disaggregate-methods

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
coordinates-methods

retrieve (or set) spatial coordinates
Line-class

Class "Line"
select.spatial

select points spatially
spDistsN1

Euclidean or Great Circle distance between points
recenter-methods

Methods for Function recenter in Package `sp'
char2dms

Convert character vector to DMS-class object
mapasp

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

define spatial grid
Polygon-class

Class "Polygon"
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
bbox-methods

retrieve bbox from spatial data
coordinates

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

Class "SpatialPixels"
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
spChFIDs-methods

change feature IDs in spatial objects
Spatial-class

Class "Spatial"
panel.spplot

panel and panel utility functions for spplot
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
sp

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

Class "GridTopology"
gridded-methods

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

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
gridIndex2nb

create neighbourhood (nb) object from grid geometry
coordnames-methods

retrieve or assign coordinate names for classes in sp
meuse

Meuse river data set
bpy.colors

blue-pink-yellow color scheme, which also prints well on black/white printers
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
SpatialPixelsDataFrame

define spatial grid with attribute data
dimensions-methods

retrieve spatial dimensions from spatial data
read.asciigrid

read/write to/from (ESRI) asciigrid format
sp-deprecated

Deprecated functions in sp
SpatialLines-class

a class for spatial lines
Line

create objects of class Line or Lines
SpatialPoints-class

Class "SpatialPoints"
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
bubble

Create a bubble plot of spatial data
polygons

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

consistent spatial overlay for points, grids and polygons
compassRose

Display a compass rose.
meuse.grid_ll

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

River Meuse outline
loadMeuse

deprecated function to load the Meuse data set
meuse.grid

Prediction Grid for Meuse Data Set
point.in.polygon

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

Plot methods for spatial data with attributes
geometry-methods

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

aggregation of spatial objects
stack

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

spTransform for map projection and datum transformation
zerodist

find point pairs with equal spatial coordinates
surfaceArea

Compute surface area of a digital elevation model.
spsample

sample point locations in (or on) a spatial object