Learn R Programming

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

sp (version 0.7-3)

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-3

License

GPL version 2 or later

Maintainer

Edzer Pebesma

Last Published

February 1st, 2025

Functions in sp (0.7-3)

CRS-class

Class "CRS" of coordinate reference system arguments
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
nc.shp

North Carolina county boundaries (shapefile)
meuse

Meuse river data set
GridTopology-class

Class "GridTopology" ~~~
point.in.polygon

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

a class for spatial lines with attributes
SpatialPixels-class

Class "SpatialPixels" ~~~
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
dimensions-methods

retrieve spatial dimensions from spatial data
SpatialRings-class

Class "SpatialRings"
overlay-methods

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

Class "SpatialGrid" ~~~
Srings-class

Class "Srings"
spplot-methods

Methods for Function spplot in Package `sp'
spplot

Lattice (trellis) plots for spatial data
sp

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

a class for spatial lines
overlay

spatial overlay for points, grids and rings
stack

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

North Carolina county boundaries (maps)
zerodist

find point pairs with equal spatial coordinates
shp2SLDF

Converter functions to build SpatialLinesDataFrame objects
Sline-class

Class "Sline"
SpatialPixels

define spatial grid
SpatialGridDataFrame-class

Class "SpatialGridDataFrame" ~~~
Rlogo

Rlogo jpeg image
as.SpatialRings.SringsList

Making SpatialRings objects
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame" ~~~
SpatialRingsDataFrame-class

Class "SpatialRingsDataFrame"
Spatial-class

Class "Spatial" ~~~
Sring-class

Class "Sring"
lns

Norwegian river center line data
select.spatial

select points spatially
image.SpatialGridDataFrame

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

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

Class "Sline"
rings

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

create objects of class Sline or Slines
SpatialPoints-class

Class "SpatialPoints" ~~~
spsample

sample point locations within a spatial region
gridded-methods

specify spatial data as being gridded, or find out whether they are
panel.spplot

panel and panel utility functions for spplot
transform-methods

place holder for transform methods in library spproj
SpatialPixelsDataFrame

define spatial grid with attribute data
mapasp

Calculate aspect ratio for plotting geographic maps
pal

North Carolina county boundaries (e00)
rings-methods

Retrieve rings from SpatialRingsDataFrame object
bubble

Create a bubble plot of spatial data
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame" ~~~
bbox-methods

retrieve bbox from spatial data
read.asciigrid

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

retrieves spatial coordinates
SpatialRings

create objects of class SpatialRings or SpatialRingsDataFrame
spsample-methods

sampling point locations in (or on) a spatial object
bpy.colors

blue-pink-yellow color scheme that prints well on black/white printers
meuse.riv

River Meuse outline
meuse.grid

Prediction Grid for Meuse Data Set