Learn R Programming

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

sp (version 2.1-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. From this version, 'rgdal', 'maptools', and 'rgeos' are no longer used at all, see for details.

Copy Link

Version

Install

install.packages('sp')

Monthly Downloads

215,718

Version

2.1-2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

November 26th, 2023

Functions in sp (2.1-2)

SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
SpatialGrid-class

Class "SpatialGrid"
Rlogo

Rlogo jpeg image
SpatialLines-class

a class for spatial lines
SpatialLinesDataFrame-class

a class for spatial lines with attributes
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialMultiPoints-class

Class "SpatialMultiPoints"
Spatial-class

Class "Spatial"
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialPixels

define spatial grid
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
SpatialPoints-class

Class "SpatialPoints"
SpatialPolygons-class

Class "SpatialPolygons"
SpatialPixels-class

Class "SpatialPixels"
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
read.asciigrid

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

Convert character vector to DMS-class object
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
bpy.colors

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

aggregation of spatial objects
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
compassRose

Display a compass rose.
geometry-methods

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

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

retrieve spatial dimensions from spatial data
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
flip

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

Create a bubble plot of spatial data
elide-methods

Methods for Function elide in Package `maptools'
meuse

Meuse river data set
meuse.grid

Prediction Grid for Meuse Data Set
degAxis

axis with degrees
loadMeuse

deprecated function to load the Meuse data set
coordinates

set spatial coordinates to create a Spatial object, or retrieve spatial coordinates from a Spatial object
meuse.grid_ll

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

retrieve (or set) spatial coordinates
merge

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

retrieve bbox from spatial data
mapasp

Calculate aspect ratio for plotting geographic maps; create nice degree axis labels
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
image.SpatialGridDataFrame

Image or contour method for gridded spatial data; convert to and from image data structure
recenter-methods

Methods for Function recenter in Package `sp'
polygons

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

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

Retrieve polygons from SpatialPolygonsDataFrame object
sp-deprecated

Deprecated functions in sp
select.spatial

select points spatially
panel.spplot

panel and panel utility functions for spplot
sp2Mondrian

write map data for Mondrian
gridlines

Create N-S and E-W grid lines over a geographic region
point.in.polygon

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

River Meuse outline
over-methods

consistent spatial overlay for points, grids and polygons
surfaceArea

Compute surface area of a digital elevation model.
stack

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

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

Plot methods for spatial data with attributes
spTransform

spTransform for map projection and datum transformation
spDistsN1

Euclidean or Great Circle distance between points
spChFIDs-methods

change feature IDs in spatial objects
zerodist

find point pairs with equal spatial coordinates
Line

create objects of class Line or Lines
Polygons-class

Class "Polygons"
Line-class

Class "Line"
GridTopology-class

Class "GridTopology"
sp

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

Grids and Datums PE&RS listing
Lines-class

Class "Lines"
Polygon-class

Class "Polygon"
DMS-class

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

Class "CRS" of coordinate reference system arguments