Learn R Programming

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

sp (version 0.7-6)

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

251,963

Version

0.7-6

License

GPL version 2 or later

Maintainer

Edzer Pebesma

Last Published

February 1st, 2025

Functions in sp (0.7-6)

SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialRingsDataFrame-class

Class "SpatialRingsDataFrame"
CRS-class

Class "CRS" of coordinate reference system arguments
Sline

create objects of class Sline or Slines
GridTopology-class

Class "GridTopology" ~~~
SpatialGrid-class

Class "SpatialGrid" ~~~
Slines-class

Class "Sline"
coordinates-methods

retrieves spatial coordinates
SpatialRings

create objects of class SpatialRings or SpatialRingsDataFrame
SpatialRings-class

Class "SpatialRings"
read.asciigrid

read/write to/from (ESRI) asciigrid format
Sring-class

Class "Sring"
dimensions-methods

retrieve spatial dimensions from spatial data
SpatialLinesDataFrame-class

a class for spatial lines with attributes
spsample

sample point locations within a spatial region
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame" ~~~
Spatial-class

Class "Spatial" ~~~
SpatialPixelsDataFrame

define spatial grid with attribute data
bubble

Create a bubble plot of spatial data
SpatialLines-class

a class for spatial lines
gridded-methods

specify spatial data as being gridded, or find out whether they are
is.projected

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

select points spatially
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame" ~~~
overlay-methods

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

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

Methods for Function spplot in Package `sp'
stack

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

Calculate aspect ratio for plotting geographic maps
SpatialPoints-class

Class "SpatialPoints" ~~~
bpy.colors

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

Class "Srings"
SpatialGridDataFrame-class

Class "SpatialGridDataFrame" ~~~
shp2SLDF

Converter functions to build SpatialLinesDataFrame objects
image.SpatialGridDataFrame

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

Norwegian river center line data
panel.spplot

panel and panel utility functions for spplot
Rlogo

Rlogo jpeg image
ncmap

North Carolina county boundaries (maps)
bbox-methods

retrieve bbox from spatial data
rings

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

find point pairs with equal spatial coordinates
rings-methods

Retrieve rings from SpatialRingsDataFrame object
transform-methods

place holder for transform methods in library spproj
nowrapSpatialLines

Split SpatialLines components at offset
recenter-methods

Methods for Function recenter in Package `sp'
coordinates

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

Meuse river data set
as.SpatialRings.SringsList

Making SpatialRings objects
nc.shp

North Carolina county boundaries (shapefile)
SpatialPixels

define spatial grid
spplot

Lattice (trellis) plots for spatial data
pal

North Carolina county boundaries (e00)
point.in.polygon

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

Class "SpatialPixels" ~~~
Sline-class

Class "Sline"
overlay

spatial overlay for points, grids and rings
spsample-methods

sampling point locations in (or on) a spatial object
meuse.riv

River Meuse outline
meuse.grid

Prediction Grid for Meuse Data Set