Learn R Programming

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

raster (version 1.8-25)

Geographic analysis and modeling with raster data

Description

Reading, writing, manipulating, analyzing and modeling of gridded spatial data. The package implements basic and high-level functions, as well as map algebra. Processing of very large files is supported.

Copy Link

Version

Install

install.packages('raster')

Monthly Downloads

154,880

Version

1.8-25

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

May 25th, 2011

Functions in raster (1.8-25)

area

Size of cells
cellValues

Obsolete functions
extract

Extract values from Raster objects
compare

Compare
SampleInt

Sample integer values
raster

Create a RasterLayer object
brick

Create a RasterBrick object
shift

Shift
Compare-methods

Compare Raster* objects
merge

Merge RasterLayers
factors

Factors
KML

Write a KML or KMZ file
rasterFromCells

Subset a raster by cell numbers
Options

Global options for the raster package
contour

Contour plot
saverasterstack

Save or open a RasterStack file
Gain and offset

Gain and offset of values on file
rectify

rectify a Raster object
atan2

Two argument arc-tangent
extremeValues

Minimum and maximum values
rotated

Do the raster cells have a rotation?
Arith-methods

Arithmic with Raster* objects
subset

Subset layers in a Raster* object
Raster-class

Raster* classes
interpolate

Interpolate
draw

Draw a line or polygon
Summary

Summary
Extent-class

Class "Extent"
alignExtent

Align an extent (object of class Extent)
sampleRegular

Regular sample
disaggregate

Disaggregate
raster-package

An overview of the functions in this package
extension

Filename extensions
dim

Dimensions of a Raster* object
getValues

Get raster cell values
adjacency

Adjacency
Math-methods

Mathematical functions
persp

Perspective plot
Logic-methods

Logical operators and functions
overlay

Overlay Raster objects
clearValues

Clear values
hdr

Header files
calc

Calculate
clump

Detect clumps
plot

Plot a Raster* object
filledContour

Filled contour plot
bands

Number of bands
Summary-methods

Summary methods
pointDistance

Distance between points
Programming

Helper functions for programming
Extent coordinates

Coordinates of the Extent of a Raster object
as.matrix

Get a matrix with raster cell values
dataType

Data type
focalFilter

Focal filter
expand

Expand
reclass

Reclassify
cellsFromExtent

Cells from Extent
datasource

Are values in memory and/or on disk?
extent

Extent
polygonFromExtent

Polygon from Extent
ncell

Number or rows, columns, and cells of a Raster* object
autocorrelation

Spatial autocorrelation
cellStats

Cell statistics
stats

Miscellaneous statistical functions
cover

Replace NA values with values of other layers
rotate

Rotate
isLonLat

Is this longitude/latitude data?
inifile

Read a .ini file
rasterToPoints

Raster to points conversion
intersectExtent

Extent intersection
mosaic

Merge RasterLayers using a function for overlapping areas
click

Click on a map
cellFrom

Get cell, row, or column number
nudgeExtent

Round extent coordinates
zoom

Zoom in on a plot
Cluster

Use a multi-core (snow) cluster
update

Update raster cells of files (on disk)
distanceFromPoints

Distance from points
replacement

Extract or replace cell values of a Raster object
rasterizeObsolete

Obsolete
as.logical

Change values to logical
which

Which cells are TRUE?
addLayer

Add or drop a layer
predict

Spatial model predictions
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
Slope and aspect

Slope and aspect
projectRaster

Project a Raster object
resolution

Resolution
hist

Histogram
focal

Focal
plot3D

Interactive 3D plot of a RasterLayer
rasterFromXYZ

Create a RasterLayer from x, y, z values
direction

Direction
NAvalue

Set the NA value of a RasterLayer
rasterToPolygons

Raster to polygons conversion
density

Density plot
distance

Distance
mask

Mask values in a Raster object
properties

Raster file properties
setExtent

Set the extent of a RasteLayer
gridDistance

Grid distance
initialize

Intitialize
boxplot

Box plot of Raster objects
cut

Convert values to classes
writeValues

Write values to a file
rasterize

Rasterize points, lines, or polygons
rasterTmpFile

Temporary files
readAll

Read values from disk
sampleRandom

Random sample
unionExtent

Extent union
rasterToContour

Raster to contour lines conversion
writeFormats

File types for writing
nlayers

Number of layers
crosstab

Cross-tabulate
drawExtent

Create an Extent object by drawing on a map
flip

Flip
setMinMax

Compute min and max values
xyFromCell

Coordinates from a row, column or cell number
crop

Crop
validCell

Validity of a cell, column or row number
edge

Edge detection
filename

Filename
getData

Get geographic data
obsolete

Obsolete functions
projection

Get or set a projection
plotRGB

Red-Green-Blue plot of a multi-layered Raster object
blockSize

Block size for writing files
zonal

Zonal statistics
count

Count
freq

Frequency table
head

Show the head or tail of a Raster* object
rowFromCell

Row or column number from a cell number
quantile

Raster quantiles
hillShade

Hill shading
round

Integer values
setValues

Set values of a Raster object
resample

Resample a Raster object
stack

Create a RasterStack object
pairs

Pairs plot (matrix of scatterplots)
transpose

Transpose
writeRaster

Write raster data to a file
unique

Unique values
unstack

Unstack
stackSelect

Select cell values from a multi-layer Raster* object
getValuesBlock

Get a block of raster cell values
aggregate

Aggregate cells
image

Image
origin

Origin
trim

Trim
substitute

Substitute values in a RasterLayer