Learn R Programming

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

sp (version 2.1-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. 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-1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

October 16th, 2023

Functions in sp (2.1-1)

CRS-class

Class "CRS" of coordinate reference system arguments
Rlogo

Rlogo jpeg image
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialLines-class

a class for spatial lines
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
Polygon-class

Class "Polygon"
Spatial-class

Class "Spatial"
Polygons-class

Class "Polygons"
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
SpatialLinesDataFrame-class

a class for spatial lines with attributes
Lines-class

Class "Lines"
SpatialPolygons-class

Class "SpatialPolygons"
read.asciigrid

read/write to/from (ESRI) asciigrid format
bbox-methods

retrieve bbox from spatial data
SpatialMultiPoints-class

Class "SpatialMultiPoints"
bpy.colors

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

Class "SpatialPixels"
bubble

Create a bubble plot of spatial data
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
aggregate

aggregation of spatial objects
coordnames-methods

retrieve or assign coordinate names for classes in sp
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
SpatialGrid-class

Class "SpatialGrid"
degAxis

axis with degrees
coordinates-methods

retrieve (or set) spatial coordinates
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
over-methods

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

River Meuse outline
coordinates

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

Methods for Function elide in Package `maptools'
flip

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

create neighbourhood (nb) object from grid geometry
gridlines

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

define spatial grid
meuse.grid

Prediction Grid for Meuse Data Set
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
SpatialPoints-class

Class "SpatialPoints"
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
sp-deprecated

Deprecated functions in sp
sp2Mondrian

write map data for Mondrian
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
geometry-methods

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

Retrieve polygons from SpatialPolygonsDataFrame 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
char2dms

Convert character vector to DMS-class object
polygons

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

deprecated function to load the Meuse data set
spsample

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

panel and panel utility functions for spplot
merge

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

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

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

Display a compass rose.
meuse

Meuse river data set
spTransform

spTransform for map projection and datum transformation
spplot

Plot methods for spatial data with attributes
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
point.in.polygon

do point(s) fall in a given polygon?
spChFIDs-methods

change feature IDs in spatial objects
spDistsN1

Euclidean or Great Circle distance between points
recenter-methods

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

select points spatially
surfaceArea

Compute surface area of a digital elevation model.
zerodist

find point pairs with equal spatial coordinates
sp

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

Grids and Datums PE&RS listing
GridTopology-class

Class "GridTopology"
Line-class

Class "Line"
Line

create objects of class Line or Lines
DMS-class

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