Learn R Programming

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

sp (version 0.7-10)

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

256,184

Version

0.7-10

License

GPL version 2 or later

Maintainer

Edzer Pebesma

Last Published

February 1st, 2025

Functions in sp (0.7-10)

sp

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

Class "SpatialGrid" ~~~
SpatialRingsDataFrame-class

Class "SpatialRingsDataFrame"
SpatialGridDataFrame-class

Class "SpatialGridDataFrame"
coordinates-methods

retrieves spatial coordinates
SpatialLines-class

a class for spatial lines
read.asciigrid

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

retrieve spatial dimensions from spatial data
bubble

Create a bubble plot of spatial data
SpatialLines

create objects of class SpatialLines or SpatialLinesDataFrame
SpatialPoints-class

Class "SpatialPoints" ~~~
SpatialPixelsDataFrame

define spatial grid with attribute data
coordinates

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

Class "GridTopology" ~~~
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame" ~~~
Rlogo

Rlogo jpeg image
CRS-class

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

Class "Sline"
is.projected

Sets or retrieves projection attributes on classes extending SpatialData
pal

North Carolina county boundaries (e00)
stack

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

Class "Spatial" ~~~
SpatialLinesDataFrame-class

a class for spatial lines with attributes
panel.spplot

panel and panel utility functions for spplot
point.in.polygon

do point(s) fall in a given polygon?
overlay-methods

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

Converter functions to build SpatialLinesDataFrame objects
coordnames-methods

retrieve or assign coordinate names for classes in sp
overlay

spatial overlay for points, grids and rings
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame"
nowrapSpatialLines

Split SpatialLines components at offset
spplot-methods

Methods for Function spplot in Package `sp'
rings

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

Class "SpatialPixels" ~~~
SpatialPixels

define spatial grid
recenter-methods

Methods for Function recenter in Package `sp'
bpy.colors

blue-pink-yellow color scheme that prints well on black/white printers
as.SpatialRings.SringsList

Making SpatialRings objects
ncmap

North Carolina county boundaries (maps)
bbox-methods

retrieve bbox from spatial data
SpatialRings

create objects of class SpatialRings or SpatialRingsDataFrame
Srings-class

Class "Srings"
spplot

Lattice (trellis) plots for spatial data
AttributeList-class

Class "AttributeList"
lns

Norwegian river center line data
Sring-class

Class "Sring"
transform-methods

place holder for transform methods in library spproj
image.SpatialGridDataFrame

image gridded spatial data, or convert to format for image
nc.shp

North Carolina county boundaries (shapefile)
SpatialRings-class

Class "SpatialRings"
zerodist

find point pairs with equal spatial coordinates
mapasp

Calculate aspect ratio for plotting geographic maps
select.spatial

select points spatially
spsample-methods

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

sample point locations within a spatial region
rings-methods

Retrieve rings from SpatialRingsDataFrame object
meuse

Meuse river data set
SpatialPoints

create objects of class SpatialPoints or SpatialPointsDataFrame
Sline-class

Class "Sline"
gridded-methods

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

create objects of class Sline or Slines
meuse.riv

River Meuse outline
meuse.grid

Prediction Grid for Meuse Data Set