Learn R Programming

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

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

215,718

Version

1.4-0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

February 21st, 2020

Functions in sp (1.4-0)

Polygon-class

Class "Polygon"
SpatialPixelsDataFrame

define spatial grid with attribute data
sp

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

Class "CRS" of coordinate reference system arguments
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
SpatialPixels

define spatial grid
SpatialLinesDataFrame-class

a class for spatial lines with attributes
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
Spatial-class

Class "Spatial"
SpatialGrid-class

Class "SpatialGrid"
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
SpatialLines-class

a class for spatial lines
Line

create objects of class Line or Lines
SpatialPolygons-class

Class "SpatialPolygons"
Line-class

Class "Line"
bbox-methods

retrieve bbox from spatial data
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
bpy.colors

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

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

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

Make SpatialPolygons object from GridTopology object
over-methods

consistent spatial overlay for points, grids and polygons
gridIndex2nb

create neighbourhood (nb) object from grid geometry
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
meuse.riv

River Meuse outline
compassRose

Display a compass rose.
SpatialPixels-class

Class "SpatialPixels"
gridlines

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

Class "SpatialMultiPoints"
image.SpatialGridDataFrame

Image or contour method for gridded spatial data; convert to and from image data structure
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
sp-deprecated

Deprecated functions in sp
aggregate

aggregation of spatial objects
spTransform

spTransform for map projection and datum transformation
spDistsN1

Euclidean or Great Circle distance between points
spChFIDs-methods

change feature IDs in spatial objects
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
surfaceArea

Compute surface area of a digital elevation model.
spplot

Plot methods for spatial data with attributes
read.asciigrid

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

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

Class "SpatialPoints"
degAxis

axis with degrees
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
spsample

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

retrieve spatial dimensions from spatial data
bubble

Create a bubble plot of spatial data
meuse.grid

Prediction Grid for Meuse Data Set
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
coordinates-methods

retrieve (or set) spatial coordinates
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
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
geometry-methods

Methods for retrieving the geometry from a composite (geometry + attributes) object
point.in.polygon

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

sets spatial coordinates to create spatial data, or retrieves spatial coordinates
panel.spplot

panel and panel utility functions for spplot
meuse

Meuse river data set
coordnames-methods

retrieve or assign coordinate names for classes in sp
loadMeuse

deprecated function to load the Meuse data set
mapasp

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

find point pairs with equal spatial coordinates
merge

Merge a Spatial* object having attributes with a data.frame
gridded-methods

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

Methods for Function recenter in Package `sp'
select.spatial

select points spatially
DMS-class

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

Class "Lines"
GridTopology-class

Class "GridTopology"
Rlogo

Rlogo jpeg image
Polygons-class

Class "Polygons"