Learn R Programming

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

sp (version 2.1-3)

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-3

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 30th, 2024

Functions in sp (2.1-3)

SpatialPixels

define spatial grid
Spatial-class

Class "Spatial"
SpatialLinesDataFrame-class

a class for spatial lines with attributes
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialLines-class

a class for spatial lines
SpatialMultiPoints-class

Class "SpatialMultiPoints"
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
SpatialPolygons-class

Class "SpatialPolygons"
SpatialPixels-class

Class "SpatialPixels"
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
SpatialPoints-class

Class "SpatialPoints"
read.asciigrid

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

Making SpatialPolygons objects
aggregate

aggregation of spatial objects
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
compassRose

Display a compass rose.
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
char2dms

Convert character vector to DMS-class object
bubble

Create a bubble plot of spatial data
bbox-methods

retrieve bbox from spatial data
disaggregate-methods

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
bpy.colors

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

retrieve spatial dimensions from spatial data
coordinates-methods

retrieve (or set) spatial coordinates
coordnames-methods

retrieve or assign coordinate names for classes in sp
degAxis

axis with degrees
loadMeuse

deprecated function to load the Meuse data set
meuse

Meuse river data set
merge

Merge a Spatial* object having attributes with a data.frame
point.in.polygon

do point(s) fall in a given polygon?
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
flip

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

Methods for Function elide in Package `maptools'
mapasp

Calculate aspect ratio for plotting geographic maps; create nice degree axis labels
panel.spplot

panel and panel utility functions for spplot
polygons

sets spatial coordinates to create spatial data, or retrieves spatial coordinates
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
gridlines

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

Deprecated functions in sp
over-methods

consistent spatial overlay for points, grids and polygons
zerodist

find point pairs with equal spatial coordinates
sp2Mondrian

write map data for Mondrian
meuse.riv

River Meuse outline
geometry-methods

Methods for retrieving the geometry from a composite (geometry + attributes) object
gridIndex2nb

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

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

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

Methods for Function recenter in Package `sp'
meuse.grid_ll

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

select points spatially
spChFIDs-methods

change feature IDs in spatial objects
spsample

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

Euclidean or Great Circle distance between points
spplot

Plot methods for spatial data with attributes
meuse.grid

Prediction Grid for Meuse Data Set
surfaceArea

Compute surface area of a digital elevation model.
coordinates

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

spTransform for map projection and datum transformation
Line

create objects of class Line or Lines
Line-class

Class "Line"
Rlogo

Rlogo jpeg image
Lines-class

Class "Lines"
GridsDatums

Grids and Datums PE&RS listing
sp

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

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

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

Class "GridTopology"
SpatialGrid-class

Class "SpatialGrid"
Polygon-class

Class "Polygon"
Polygons-class

Class "Polygons"