Learn R Programming

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

sp (version 0.7-8)

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

187,279

Version

0.7-8

License

GPL version 2 or later

Maintainer

Edzer Pebesma

Last Published

February 1st, 2025

Functions in sp (0.7-8)

coordnames-methods

retrieve or assign coordinate names for classes in sp
meuse

Meuse river data set
SpatialPixels

define spatial grid
panel.spplot

panel and panel utility functions for spplot
Sring-class

Class "Sring"
bubble

Create a bubble plot of spatial data
Slines-class

Class "Sline"
lns

Norwegian river center line data
spplot

Lattice (trellis) plots for spatial data
CRS-class

Class "CRS" of coordinate reference system arguments
as.SpatialRings.SringsList

Making SpatialRings objects
is.projected

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

Class "Spatial" ~~~
SpatialGridDataFrame-class

Class "SpatialGridDataFrame" ~~~
point.in.polygon

do point(s) fall in a given polygon?
Sline-class

Class "Sline"
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame" ~~~
Sline

create objects of class Sline or Slines
rings-methods

Retrieve rings from SpatialRingsDataFrame object
rings

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

Class "SpatialPixels" ~~~
overlay

spatial overlay for points, grids and rings
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
AttributeList-class

Class "AttributeList"
spsample

sample point locations within a spatial region
SpatialGrid-class

Class "SpatialGrid" ~~~
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame" ~~~
spsample-methods

sampling point locations in (or on) a spatial object
SpatialPoints-class

Class "SpatialPoints" ~~~
image.SpatialGridDataFrame

image gridded spatial data, or convert to format for image
gridded-methods

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

Converter functions to build SpatialLinesDataFrame objects
ncmap

North Carolina county boundaries (maps)
GridTopology-class

Class "GridTopology" ~~~
spplot-methods

Methods for Function spplot in Package `sp'
SpatialRings

create objects of class SpatialRings or SpatialRingsDataFrame
dimensions-methods

retrieve spatial dimensions from spatial data
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
bbox-methods

retrieve bbox from spatial data
zerodist

find point pairs with equal spatial coordinates
coordinates-methods

retrieves spatial coordinates
overlay-methods

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

North Carolina county boundaries (e00)
transform-methods

place holder for transform methods in library spproj
SpatialPixelsDataFrame

define spatial grid with attribute data
sp

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

Rlogo jpeg image
mapasp

Calculate aspect ratio for plotting geographic maps
read.asciigrid

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

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

Class "Srings"
SpatialRings-class

Class "SpatialRings"
SpatialLinesDataFrame-class

a class for spatial lines with attributes
SpatialRingsDataFrame-class

Class "SpatialRingsDataFrame"
nc.shp

North Carolina county boundaries (shapefile)
SpatialLines-class

a class for spatial lines
coordinates

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

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

Split SpatialLines components at offset
bpy.colors

blue-pink-yellow color scheme that prints well on black/white printers
select.spatial

select points spatially
meuse.grid

Prediction Grid for Meuse Data Set
meuse.riv

River Meuse outline