Learn R Programming

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

sp (version 0.7-7)

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

License

GPL version 2 or later

Maintainer

Edzer Pebesma

Last Published

February 1st, 2025

Functions in sp (0.7-7)

Spatial-class

Class "Spatial" ~~~
Rlogo

Rlogo jpeg image
Sring-class

Class "Sring"
SpatialPoints-class

Class "SpatialPoints" ~~~
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame" ~~~
coordinates

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

panel and panel utility functions for spplot
Sline

create objects of class Sline or Slines
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
point.in.polygon

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

Class "Sline"
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
stack

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

a class for spatial lines
AttributeList-class

Class "AttributeList"
SpatialGrid-class

Class "SpatialGrid" ~~~
SpatialLinesDataFrame-class

a class for spatial lines with attributes
image.SpatialGridDataFrame

image gridded spatial data, or convert to format for image
GridTopology-class

Class "GridTopology" ~~~
sp

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

Class "Srings"
recenter-methods

Methods for Function recenter in Package `sp'
as.SpatialRings.SringsList

Making SpatialRings objects
overlay-methods

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

Retrieve rings from SpatialRingsDataFrame object
ncmap

North Carolina county boundaries (maps)
spplot-methods

Methods for Function spplot in Package `sp'
coordinates-methods

retrieves spatial coordinates
spplot

Lattice (trellis) plots for spatial data
transform-methods

place holder for transform methods in library spproj
lns

Norwegian river center line data
rings

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

spatial overlay for points, grids and rings
gridded-methods

specify spatial data as being gridded, or find out whether they are
SpatialGridDataFrame-class

Class "SpatialGridDataFrame" ~~~
Slines-class

Class "Sline"
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
read.asciigrid

read/write to/from (ESRI) asciigrid format
nc.shp

North Carolina county boundaries (shapefile)
meuse

Meuse river data set
coordnames-methods

retrieve or assign coordinate names for classes in sp
shp2SLDF

Converter functions to build SpatialLinesDataFrame objects
bpy.colors

blue-pink-yellow color scheme that prints well on black/white printers
bbox-methods

retrieve bbox from spatial data
SpatialPixels

define spatial grid
SpatialPixels-class

Class "SpatialPixels" ~~~
SpatialRings

create objects of class SpatialRings or SpatialRingsDataFrame
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame" ~~~
mapasp

Calculate aspect ratio for plotting geographic maps
SpatialRingsDataFrame-class

Class "SpatialRingsDataFrame"
SpatialRings-class

Class "SpatialRings"
dimensions-methods

retrieve spatial dimensions from spatial data
pal

North Carolina county boundaries (e00)
nowrapSpatialLines

Split SpatialLines components at offset
spsample-methods

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

sample point locations within a spatial region
CRS-class

Class "CRS" of coordinate reference system arguments
bubble

Create a bubble plot of spatial data
zerodist

find point pairs with equal spatial coordinates
SpatialPixelsDataFrame

define spatial grid with attribute data
select.spatial

select points spatially
meuse.grid

Prediction Grid for Meuse Data Set
meuse.riv

River Meuse outline