Learn R Programming

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

sp (version 0.7-9)

classes and methods for spatial data

Description

A package that provides 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

198,490

Version

0.7-9

License

GPL version 2 or later

Maintainer

Edzer Pebesma

Last Published

February 1st, 2025

Functions in sp (0.7-9)

Srings-class

Class "Srings"
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialPixels

define spatial grid
AttributeList-class

Class "AttributeList"
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)
SpatialRings

create objects of class SpatialRings or SpatialRingsDataFrame
shp2SLDF

Converter functions to build SpatialLinesDataFrame objects
lns

Norwegian river center line data
meuse

Meuse river data set
coordinates

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

define spatial grid with attribute data
mapasp

Calculate aspect ratio for plotting geographic maps
as.SpatialRings.SringsList

Making SpatialRings objects
Spatial-class

Class "Spatial" ~~~
coordinates-methods

retrieves spatial coordinates
coordnames-methods

retrieve or assign coordinate names for classes in sp
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
SpatialPoints-class

Class "SpatialPoints" ~~~
Sline

create objects of class Sline or Slines
read.asciigrid

read/write to/from (ESRI) asciigrid format
dimensions-methods

retrieve spatial dimensions from spatial data
SpatialPixels-class

Class "SpatialPixels" ~~~
Slines-class

Class "Sline"
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
SpatialGrid-class

Class "SpatialGrid" ~~~
bbox-methods

retrieve bbox from spatial data
Rlogo

Rlogo jpeg image
image.SpatialGridDataFrame

image gridded spatial data, or convert to format for image
bpy.colors

blue-pink-yellow color scheme that prints well on black/white printers
CRS-class

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

Class "SpatialRingsDataFrame"
Sline-class

Class "Sline"
Sring-class

Class "Sring"
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
SpatialLinesDataFrame-class

a class for spatial lines with attributes
sp

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

Class "GridTopology" ~~~
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
SpatialRings-class

Class "SpatialRings"
bubble

Create a bubble plot of spatial data
SpatialLines-class

a class for spatial lines
point.in.polygon

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

Split SpatialLines components at offset
select.spatial

select points spatially
ncmap

North Carolina county boundaries (maps)
recenter-methods

Methods for Function recenter in Package `sp'
spplot

Lattice (trellis) plots for spatial data
rings-methods

Retrieve rings from SpatialRingsDataFrame object
spsample

sample point locations within a spatial region
overlay

spatial overlay for points, grids and rings
spsample-methods

sampling point locations in (or on) a spatial object
rings

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

find point pairs with equal spatial coordinates
transform-methods

place holder for transform methods in library spproj
pal

North Carolina county boundaries (e00)
panel.spplot

panel and panel utility functions for spplot
overlay-methods

Methods for spatially overlay-ing points (grids) and rings layers
spplot-methods

Methods for Function spplot in Package `sp'
nc.shp

North Carolina county boundaries (shapefile)
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame" ~~~
meuse.grid

Prediction Grid for Meuse Data Set
meuse.riv

River Meuse outline