Learn R Programming

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

sp (version 1.4-2)

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.4-2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

May 20th, 2020

Functions in sp (1.4-2)

SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialLinesDataFrame-class

a class for spatial lines with attributes
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialLines-class

a class for spatial lines
SpatialMultiPoints

create objects of class SpatialMultiPoints or SpatialMultiPointsDataFrame
Spatial-class

Class "Spatial"
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame"
SpatialMultiPoints-class

Class "SpatialMultiPoints"
SpatialGrid-class

Class "SpatialGrid"
SpatialPoints-class

Class "SpatialPoints"
SpatialPolygonsDataFrame-class

Class "SpatialPolygonsDataFrame"
Polygon-class

Class "Polygon"
addAttrToGeom-methods

constructs SpatialXxxDataFrame from geometry and attributes
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
aggregate

aggregation of spatial objects
gridIndex2nb

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

Class "SpatialPolygons"
as.SpatialPolygons.GridTopology

Make SpatialPolygons object from GridTopology object
as.SpatialPolygons.PolygonsList

Making SpatialPolygons objects
gridlines

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

Create a bubble plot of spatial data
read.asciigrid

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

create objects of class SpatialPoints or SpatialPointsDataFrame
meuse.riv

River Meuse outline
SpatialPixels

define spatial grid
meuse.grid

Prediction Grid for Meuse Data Set
over-methods

consistent spatial overlay for points, grids and polygons
char2dms

Convert character vector to DMS-class object
spDistsN1

Euclidean or Great Circle distance between points
spTransform

spTransform for map projection and datum transformation
degAxis

axis with degrees
dimensions-methods

retrieve spatial dimensions from spatial data
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
compassRose

Display a compass rose.
polygons-methods

Retrieve polygons from SpatialPolygonsDataFrame object
stack

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

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

set spatial coordinates to create a Spatial object, or retrieve spatial coordinates from a Spatial object
SpatialMultiPointsDataFrame-class

Class "SpatialMultiPointsDataFrame"
polygons

sets spatial coordinates to create spatial data, or retrieves spatial coordinates
panel.spplot

panel and panel utility functions for spplot
meuse.grid_ll

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

retrieve (or set) spatial coordinates
SpatialPixels-class

Class "SpatialPixels"
SpatialPolygons

create objects of class SpatialPolygons or SpatialPolygonsDataFrame
bbox-methods

retrieve bbox from spatial data
coordnames-methods

retrieve or assign coordinate names for classes in sp
surfaceArea

Compute surface area of a digital elevation model.
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
disaggregate-methods

disaggregate SpatialLines, SpatialLinesDataFrame, SpatialPolygons, or SpatialPolygonsDataFrame objects
gridded-methods

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

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

deprecated function to load the Meuse data set
mapasp

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

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

Methods for Function recenter in Package `sp'
spplot

Plot methods for spatial data with attributes
sp-deprecated

Deprecated functions in sp
image.SpatialGridDataFrame

Image or contour method for gridded spatial data; convert to and from image data structure
meuse

Meuse river data set
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
select.spatial

select points spatially
spsample

sample point locations in (or on) a spatial object
spChFIDs-methods

change feature IDs in spatial objects
zerodist

find point pairs with equal spatial coordinates
Lines-class

Class "Lines"
Line-class

Class "Line"
DMS-class

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

Class "GridTopology"
Line

create objects of class Line or Lines
sp

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

Class "Polygons"
CRS-class

Class "CRS" of coordinate reference system arguments
Rlogo

Rlogo jpeg image