Learn R Programming

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

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

189,773

Version

1.3-2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Edzer Pebesma

Last Published

November 7th, 2019

Functions in sp (1.3-2)

DMS-class

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

Class "SpatialPolygons"
Rlogo

Rlogo jpeg image
Lines-class

Class "Lines"
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
SpatialMultiPoints-class

Class "SpatialMultiPoints"
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
Polygon-class

Class "Polygon"
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
GridTopology-class

Class "GridTopology"
SpatialPixelsDataFrame

define spatial grid with attribute data
sp

A package providing classes and methods for spatial data: points, lines, polygons and grids
bpy.colors

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

retrieve spatial dimensions from spatial data
select.spatial

select points spatially
meuse

Meuse river data set
merge

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

axis with degrees
recenter-methods

Methods for Function recenter in Package `sp'
stack

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

retrieve bbox from spatial data
aggregate

aggregation of spatial objects
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
SpatialLines-class

a class for spatial lines
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
SpatialPoints-class

Class "SpatialPoints"
Line-class

Class "Line"
SpatialLinesDataFrame-class

a class for spatial lines with attributes
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
compassRose

Display a compass rose.
Line

create objects of class Line or Lines
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
spplot

Plot methods for spatial data with attributes
gridIndex2nb

create neighbourhood (nb) object from grid geometry
spTransform

spTransform for map projection and datum transformation
spDistsN1

Euclidean or Great Circle distance between points
gridlines

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

retrieve (or set) spatial coordinates
spsample

sample point locations in (or on) a spatial object
CRS-class

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

Class "SpatialPixels"
SpatialPixels

define spatial grid
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
gridded-methods

specify spatial data as being gridded, or find out whether they are
panel.spplot

panel and panel utility functions for spplot
mapasp

Calculate aspect ratio for plotting geographic maps; create nice degree axis labels
geometry-methods

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

Compute surface area of a digital elevation model.
loadMeuse

deprecated function to load the Meuse data set
point.in.polygon

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

Convert character vector to DMS-class object
bubble

Create a bubble plot of spatial data
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
coordinates

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

Class "SpatialPointsDataFrame"
coordnames-methods

retrieve or assign coordinate names for classes in sp
meuse.grid

Prediction Grid for Meuse Data Set
disaggregate-methods

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
meuse.grid_ll

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

Class "Spatial"
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
SpatialGrid-class

Class "SpatialGrid"
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
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
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
over-methods

consistent spatial overlay for points, grids and polygons
read.asciigrid

read/write to/from (ESRI) asciigrid format
meuse.riv

River Meuse outline
sp-deprecated

Deprecated functions in sp
spChFIDs-methods

change feature IDs in spatial objects
zerodist

find point pairs with equal spatial coordinates
polygons

sets spatial coordinates to create spatial data, or retrieves spatial coordinates
Polygons-class

Class "Polygons"