Learn R Programming

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

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

Copy Link

Version

Install

install.packages('sp')

Monthly Downloads

215,718

Version

1.1-1

License

GPL (>= 2)

Maintainer

Last Published

June 5th, 2015

Functions in sp (1.1-1)

Polygon-class

Class "Polygon"
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
flip

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

Class "SpatialPixels"
spplot

Plot methods for spatial data with attributes
SpatialPixels

define spatial grid
sp

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

a class for spatial lines
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
meuse.grid

Prediction Grid for Meuse Data Set
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
coordnames-methods

retrieve or assign coordinate names for classes in sp
panel.spplot

panel and panel utility functions for spplot
select.spatial

select points spatially
SpatialLinesDataFrame-class

a class for spatial lines with attributes
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
SpatialPoints-class

Class "SpatialPoints"
Rlogo

Rlogo jpeg image
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
disaggregate-methods

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

Class "GridTopology"
bubble

Create a bubble plot of spatial data
Lines-class

Class "Lines"
meuse.riv

River Meuse outline
spDistsN1

Euclidean or Great Circle distance between points
SpatialPixelsDataFrame

define spatial grid with attribute data
gridIndex2nb

create neighbourhood (nb) object from grid geometry
Polygons-class

Class "Polygons"
CRS-class

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

Class "SpatialGrid"
mapasp

Calculate aspect ratio for plotting geographic maps; create nice degree axis labels
Line-class

Class "Line"
dimensions-methods

retrieve spatial dimensions from spatial data
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
aggregate

aggregation of spatial objects
Line

create objects of class Line or Lines
spChFIDs-methods

change feature IDs in spatial objects
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
degAxis

axis with degrees
over-methods

consistent spatial overlay for points, grids and polygons
spTransform

spTransform for map projection and datum transformation
gridded-methods

specify spatial data as being gridded, or find out whether they are
geometry-methods

Methods for retrieving the geometry from a composite (geometry + attributes) object
read.asciigrid

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

Convert character vector to DMS-class object
sp-deprecated

Deprecated functions in sp
SpatialPolygons-class

Class "SpatialPolygons"
Spatial-class

Class "Spatial"
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
image.SpatialGridDataFrame

image gridded spatial data, or convert to format for image
zerodist

find point pairs with equal spatial coordinates
bpy.colors

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

Compute surface area of a digital elevation model.
compassRose

Display a compass rose.
nowrapSpatialLines

Split SpatialLines components at offset
merge

Merge a Spatial* object having attributes with a data.frame
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
spsample

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

Class "DMS" for degree, minute, decimal second values
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
point.in.polygon

do point(s) fall in a given polygon?
polygons

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

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

Methods for Function recenter in Package `sp'
meuse

Meuse river data set
coordinates-methods

retrieve (or set) spatial coordinates
meuse.grid_ll

Prediction Grid for Meuse Data Set, geographical coordinates
gridlines

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

retrieve bbox from spatial data
stack

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

deprecated function to load the Meuse data set
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object