Learn R Programming

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

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

215,718

Version

1.2-1

License

GPL (>= 2)

Maintainer

Last Published

October 18th, 2015

Functions in sp (1.2-1)

Polygons-class

Class "Polygons"
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
SpatialMultiPoints-class

Class "SpatialMultiPoints"
coordinates-methods

retrieve (or set) spatial coordinates
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
sp

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

Class "SpatialMultiPointsDataFrame"
disaggregate-methods

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
Lines-class

Class "Lines"
Rlogo

Rlogo jpeg image
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
geometry-methods

Methods for retrieving the geometry from a composite (geometry + attributes) object
bpy.colors

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

Class "SpatialPoints"
sp-deprecated

Deprecated functions in sp
flip

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

Compute surface area of a digital elevation model.
Line-class

Class "Line"
meuse.grid_ll

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

consistent spatial overlay for points, grids and polygons
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
select.spatial

select points spatially
meuse.riv

River Meuse outline
GridTopology-class

Class "GridTopology"
CRS-class

Class "CRS" of coordinate reference system arguments
coordnames-methods

retrieve or assign coordinate names for classes in sp
char2dms

Convert character vector to DMS-class object
bbox-methods

retrieve bbox from spatial data
mapasp

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

Plot methods for spatial data with attributes
compassRose

Display a compass rose.
Polygon-class

Class "Polygon"
aggregate

aggregation of spatial objects
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
DMS-class

Class "DMS" for degree, minute, decimal second values
image.SpatialGridDataFrame

image gridded spatial data, or convert to format for image
SpatialLines-class

a class for spatial lines
SpatialPixels-class

Class "SpatialPixels"
Spatial-class

Class "Spatial"
SpatialLinesDataFrame-class

a class for spatial lines with attributes
loadMeuse

deprecated function to load the Meuse data set
panel.spplot

panel and panel utility functions for spplot
spsample

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

define spatial grid with attribute data
spChFIDs-methods

change feature IDs in spatial objects
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
SpatialGrid-class

Class "SpatialGrid"
gridIndex2nb

create neighbourhood (nb) object from grid geometry
meuse

Meuse river data set
bubble

Create a bubble plot of spatial data
merge

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

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

Prediction Grid for Meuse Data Set
SpatialPixels

define spatial grid
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
Line

create objects of class Line or Lines
gridlines

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

spTransform for map projection and datum transformation
zerodist

find point pairs with equal spatial coordinates
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
recenter-methods

Methods for Function recenter in Package `sp'
SpatialPolygons-class

Class "SpatialPolygons"
dimensions-methods

retrieve spatial dimensions from spatial data
degAxis

axis with degrees
polygons

sets spatial coordinates to create spatial data, or retrieves spatial coordinates
read.asciigrid

read/write to/from (ESRI) asciigrid format
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)
spDistsN1

Euclidean or Great Circle distance between points
point.in.polygon

do point(s) fall in a given polygon?