Learn R Programming

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

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

206,405

Version

1.6-0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 19th, 2023

Functions in sp (1.6-0)

SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialGrid-class

Class "SpatialGrid"
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialPixels

define spatial grid
Spatial-class

Class "Spatial"
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
SpatialLines-class

a class for spatial lines
SpatialMultiPoints-class

Class "SpatialMultiPoints"
SpatialLinesDataFrame-class

a class for spatial lines with attributes
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
SpatialPoints-class

Class "SpatialPoints"
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
SpatialPixels-class

Class "SpatialPixels"
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
SpatialPolygons-class

Class "SpatialPolygons"
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
char2dms

Convert character vector to DMS-class object
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
bubble

Create a bubble plot of spatial data
bpy.colors

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

Display a compass rose.
bbox-methods

retrieve bbox from spatial data
read.asciigrid

read/write to/from (ESRI) asciigrid format
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
disaggregate-methods

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

retrieve spatial dimensions from spatial data
flip

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

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

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

axis with degrees
geometry-methods

Methods for retrieving the geometry from a composite (geometry + attributes) object
meuse.grid

Prediction Grid for Meuse Data Set
aggregate

aggregation of spatial objects
coordinates-methods

retrieve (or set) spatial coordinates
coordnames-methods

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

consistent spatial overlay for points, grids and polygons
gridded-methods

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

create neighbourhood (nb) object from grid geometry
meuse

Meuse river data set
merge

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

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

change feature IDs in spatial objects
image.SpatialGridDataFrame

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

deprecated function to load the Meuse data set
stack

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

Deprecated functions in sp
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
polygons

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

Plot methods for spatial data with attributes
point.in.polygon

do point(s) fall in a given polygon?
meuse.riv

River Meuse outline
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
select.spatial

select points spatially
spsample

sample point locations in (or on) a spatial object
zerodist

find point pairs with equal spatial coordinates
panel.spplot

panel and panel utility functions for spplot
spTransform

spTransform for map projection and datum transformation
spDistsN1

Euclidean or Great Circle distance between points
recenter-methods

Methods for Function recenter in Package `sp'
surfaceArea

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

Retrieve polygons from SpatialPolygonsDataFrame object
Lines-class

Class "Lines"
Polygon-class

Class "Polygon"
sp

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

Class "GridTopology"
Line

create objects of class Line or Lines
Line-class

Class "Line"
Rlogo

Rlogo jpeg image
Polygons-class

Class "Polygons"
CRS-class

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

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