Learn R Programming

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

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

234,361

Version

1.4-4

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Edzer Pebesma

Last Published

October 7th, 2020

Functions in sp (1.4-4)

Line-class

Class "Line"
GridTopology-class

Class "GridTopology"
Lines-class

Class "Lines"
Line

create objects of class Line or Lines
Polygons-class

Class "Polygons"
sp

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

Rlogo jpeg image
Polygon-class

Class "Polygon"
CRS-class

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

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

Class "Spatial"
SpatialGrid-class

Class "SpatialGrid"
SpatialLines-class

a class for spatial lines
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialPixels

define spatial grid
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
SpatialMultiPoints-class

Class "SpatialMultiPoints"
aggregate

aggregation of spatial objects
compassRose

Display a compass rose.
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
SpatialPixels-class

Class "SpatialPixels"
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
SpatialPolygons-class

Class "SpatialPolygons"
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
bbox-methods

retrieve bbox from spatial data
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
meuse

Meuse river data set
coordinates-methods

retrieve (or set) spatial coordinates
merge

Merge a Spatial* object having attributes with a data.frame
read.asciigrid

read/write to/from (ESRI) asciigrid format
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
SpatialLinesDataFrame-class

a class for spatial lines with attributes
degAxis

axis with degrees
SpatialPoints-class

Class "SpatialPoints"
bubble

Create a bubble plot of spatial data
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
bpy.colors

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

retrieve spatial dimensions from spatial data
sp-deprecated

Deprecated functions in sp
spChFIDs-methods

change feature IDs in spatial objects
select.spatial

select points spatially
recenter-methods

Methods for Function recenter in Package `sp'
coordinates

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

Convert character vector to DMS-class object
spplot

Plot methods for spatial data with attributes
gridded-methods

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

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

River Meuse outline
geometry-methods

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

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
spsample

sample point locations in (or on) a spatial object
image.SpatialGridDataFrame

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

create neighbourhood (nb) object from grid geometry
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
meuse.grid

Prediction Grid for Meuse Data Set
over-methods

consistent spatial overlay for points, grids and polygons
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
is.projected

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

Retrieve polygons from SpatialPolygonsDataFrame object
polygons

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

find point pairs with equal spatial coordinates
spTransform

spTransform for map projection and datum transformation
point.in.polygon

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

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

Euclidean or Great Circle distance between points
mapasp

Calculate aspect ratio for plotting geographic maps; create nice degree axis labels
panel.spplot

panel and panel utility functions for spplot
loadMeuse

deprecated function to load the Meuse data set
surfaceArea

Compute surface area of a digital elevation model.