Learn R Programming

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

sp (version 1.2-4)

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

251,963

Version

1.2-4

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Edzer Pebesma

Last Published

December 22nd, 2016

Functions in sp (1.2-4)

aggregate

aggregation of spatial objects
sp

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

Convert character vector to DMS-class object
coordinates

set spatial coordinates to create a Spatial object, or retrieve spatial coordinates from a Spatial object
bubble

Create a bubble plot of spatial data
read.asciigrid

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

Display a compass rose.
bpy.colors

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

Making SpatialPolygons objects
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
gridIndex2nb

create neighbourhood (nb) object from grid geometry
flip

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

Image or contour method for gridded spatial data; convert to and from image data structure
gridlines

Create N-S and E-W grid lines over a geographic region
is.projected

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

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
GridTopology-class

Class "GridTopology"
DMS-class

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

Meuse river data set
meuse.riv

River Meuse outline
Rlogo

Rlogo jpeg image
select.spatial

select points spatially
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
spDistsN1

Euclidean or Great Circle distance between points
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
Line-class

Class "Line"
panel.spplot

panel and panel utility functions for spplot
Line

create objects of class Line or Lines
point.in.polygon

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

define spatial grid
SpatialPolygons-class

Class "SpatialPolygons"
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
CRS-class

Class "CRS" of coordinate reference system arguments
Lines-class

Class "Lines"
degAxis

axis with degrees
Polygon-class

Class "Polygon"
loadMeuse

deprecated function to load the Meuse data set
SpatialPixels-class

Class "SpatialPixels"
Polygons-class

Class "Polygons"
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
spChFIDs-methods

change feature IDs in spatial objects
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
spTransform

spTransform for map projection and datum transformation
merge

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

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

Deprecated functions in sp
SpatialGrid-class

Class "SpatialGrid"
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
meuse.grid_ll

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

Prediction Grid for Meuse Data Set
polygons

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

create objects of class SpatialLines or SpatialLinesDataFrame
recenter-methods

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

a class for spatial lines with attributes
stack

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

find point pairs with equal spatial coordinates
SpatialMultiPoints-class

Class "SpatialMultiPoints"
SpatialPoints-class

Class "SpatialPoints"
bbox-methods

retrieve bbox from spatial data
Spatial-class

Class "Spatial"
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
SpatialLines-class

a class for spatial lines
spplot

Plot methods for spatial data with attributes
spsample

sample point locations in (or on) a spatial object
coordinates-methods

retrieve (or set) spatial coordinates
geometry-methods

Methods for retrieving the geometry from a composite (geometry + attributes) object
gridded-methods

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

retrieve spatial dimensions from spatial data
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
surfaceArea

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

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

consistent spatial overlay for points, grids and polygons