Learn R Programming

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

sp (version 0.7-4)

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

198,490

Version

0.7-4

License

GPL version 2 or later

Maintainer

Edzer Pebesma

Last Published

February 1st, 2025

Functions in sp (0.7-4)

Spatial-class

Class "Spatial" ~~~
Sline-class

Class "Sline"
Sring-class

Class "Sring"
SpatialPixelsDataFrame

define spatial grid with attribute data
SpatialRings-class

Class "SpatialRings"
overlay-methods

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

create objects of class SpatialLines or SpatialLinesDataFrame
CRS-class

Class "CRS" of coordinate reference system arguments
spsample

sample point locations within a spatial region
nc.shp

North Carolina county boundaries (shapefile)
meuse

Meuse river data set
SpatialPixels

define spatial grid
dimensions-methods

retrieve spatial dimensions from spatial data
panel.spplot

panel and panel utility functions for spplot
coordinates

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

Create a bubble plot of spatial data
transform-methods

place holder for transform methods in library spproj
SpatialLinesDataFrame-class

a class for spatial lines with attributes
spsample-methods

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

North Carolina county boundaries (maps)
spplot

Lattice (trellis) plots for spatial data
pal

North Carolina county boundaries (e00)
bbox-methods

retrieve bbox from spatial data
rings-methods

Retrieve rings from SpatialRingsDataFrame object
is.projected

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

Class "Srings"
read.asciigrid

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

Class "SpatialRingsDataFrame"
lns

Norwegian river center line data
SpatialLines-class

a class for spatial lines
select.spatial

select points spatially
bpy.colors

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

specify spatial data as being gridded, or find out whether they are
point.in.polygon

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

spatial overlay for points, grids and rings
SpatialPixels-class

Class "SpatialPixels" ~~~
SpatialGrid-class

Class "SpatialGrid" ~~~
as.SpatialRings.SringsList

Making SpatialRings objects
Rlogo

Rlogo jpeg image
rings

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

Converter functions to build SpatialLinesDataFrame objects
SpatialPointsDataFrame-class

Class "SpatialPointsDataFrame" ~~~
zerodist

find point pairs with equal spatial coordinates
stack

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

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

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

Methods for Function spplot in Package `sp'
Sline

create objects of class Sline or Slines
mapasp

Calculate aspect ratio for plotting geographic maps
Slines-class

Class "Sline"
GridTopology-class

Class "GridTopology" ~~~
SpatialRings

create objects of class SpatialRings or SpatialRingsDataFrame
SpatialGridDataFrame-class

Class "SpatialGridDataFrame" ~~~
SpatialPixelsDataFrame-class

Class "SpatialPixelsDataFrame" ~~~
SpatialPoints-class

Class "SpatialPoints" ~~~
coordinates-methods

retrieves spatial coordinates
meuse.riv

River Meuse outline
meuse.grid

Prediction Grid for Meuse Data Set