Learn R Programming

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

sp (version 1.6-1)

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

197,310

Version

1.6-1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

May 31st, 2023

Functions in sp (1.6-1)

Spatial-class

Class "Spatial"
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialGrid-class

Class "SpatialGrid"
SpatialLinesDataFrame-class

a class for spatial lines with attributes
SpatialPixels

define spatial grid
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
SpatialMultiPoints-class

Class "SpatialMultiPoints"
SpatialLines-class

a class for spatial lines
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
SpatialPixels-class

Class "SpatialPixels"
SpatialPoints-class

Class "SpatialPoints"
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
SpatialPolygons-class

Class "SpatialPolygons"
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
aggregate

aggregation of spatial objects
bpy.colors

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

Display a compass rose.
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
bubble

Create a bubble plot of spatial data
bbox-methods

retrieve bbox from spatial data
coordinates-methods

retrieve (or set) spatial coordinates
read.asciigrid

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

Making SpatialPolygons objects
coordinates

set spatial coordinates to create a Spatial object, or retrieve spatial coordinates from a Spatial object
disaggregate-methods

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
degAxis

axis with degrees
char2dms

Convert character vector to DMS-class object
flip

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

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

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

Methods for Function elide in Package `maptools'
gridIndex2nb

create neighbourhood (nb) object from grid geometry
dimensions-methods

retrieve spatial dimensions from spatial data
gridded-methods

specify spatial data as being gridded, or find out whether they are
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
merge

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

deprecated function to load the Meuse data set
gridlines

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

Calculate aspect ratio for plotting geographic maps; create nice degree axis labels
meuse.riv

River Meuse outline
image.SpatialGridDataFrame

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

Prediction Grid for Meuse Data Set
meuse

Meuse river data set
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
polygons

sets spatial coordinates to create spatial data, or retrieves spatial coordinates
select.spatial

select points spatially
over-methods

consistent spatial overlay for points, grids and polygons
sp-deprecated

Deprecated functions in sp
recenter-methods

Methods for Function recenter in Package `sp'
spChFIDs-methods

change feature IDs in spatial objects
point.in.polygon

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

Euclidean or Great Circle distance between points
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
spplot

Plot methods for spatial data with attributes
stack

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

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

spTransform for map projection and datum transformation
panel.spplot

panel and panel utility functions for spplot
zerodist

find point pairs with equal spatial coordinates
surfaceArea

Compute surface area of a digital elevation model.
Rlogo

Rlogo jpeg image
Line-class

Class "Line"
Polygon-class

Class "Polygon"
DMS-class

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

Class "CRS" of coordinate reference system arguments
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
Lines-class

Class "Lines"
GridTopology-class

Class "GridTopology"