Learn R Programming

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

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

173,411

Version

1.3-1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Edzer Pebesma

Last Published

June 5th, 2018

Functions in sp (1.3-1)

Polygons-class

Class "Polygons"
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
DMS-class

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

Class "GridTopology"
compassRose

Display a compass rose.
SpatialPixels

define spatial grid
coordinates-methods

retrieve (or set) spatial coordinates
disaggregate-methods

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
flip

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

a class for spatial lines with attributes
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
SpatialPolygons-class

Class "SpatialPolygons"
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
merge

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

Meuse river data set
panel.spplot

panel and panel utility functions for spplot
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
bbox-methods

retrieve bbox from spatial data
bpy.colors

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

axis with degrees
bubble

Create a bubble plot of spatial data
point.in.polygon

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

retrieve spatial dimensions from spatial data
Line

create objects of class Line or Lines
SpatialLines-class

a class for spatial lines
SpatialPixelsDataFrame

define spatial grid with attribute data
Line-class

Class "Line"
char2dms

Convert character vector to DMS-class object
loadMeuse

deprecated function to load the Meuse data set
zerodist

find point pairs with equal spatial coordinates
mapasp

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

Euclidean or Great Circle distance between points
SpatialPoints-class

Class "SpatialPoints"
meuse.grid_ll

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

Methods for retrieving the geometry from a composite (geometry + attributes) object
sp-deprecated

Deprecated functions in sp
aggregate

aggregation of spatial objects
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
spChFIDs-methods

change feature IDs in spatial objects
gridded-methods

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

Prediction Grid for Meuse Data Set
spTransform

spTransform for map projection and datum transformation
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
spplot

Plot methods for spatial data with attributes
coordinates

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

retrieve or assign coordinate names for classes in sp
spsample

sample point locations in (or on) a spatial object
Lines-class

Class "Lines"
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
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
Polygon-class

Class "Polygon"
polygons

sets spatial coordinates to create spatial data, or retrieves spatial coordinates
Spatial-class

Class "Spatial"
surfaceArea

Compute surface area of a digital elevation model.
stack

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

Class "SpatialMultiPointsDataFrame"
SpatialGrid-class

Class "SpatialGrid"
SpatialPixels-class

Class "SpatialPixels"
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
read.asciigrid

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

create neighbourhood (nb) object from grid geometry
gridlines

Create N-S and E-W grid lines over a geographic region
meuse.riv

River Meuse outline
over-methods

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

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

select points spatially
CRS-class

Class "CRS" of coordinate reference system arguments
sp

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

Rlogo jpeg image
SpatialMultiPoints-class

Class "SpatialMultiPoints"