Learn R Programming

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

raster (version 1.8-3)

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

153,616

Version

1.8-3

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

March 14th, 2011

Functions in raster (1.8-3)

Summary-methods

Summary methods
extension

Filename extensions
draw

Draw a line or polygon
area

Size of cells
clump

Detect clumps
datasource

Are values in memory and/or on disk?
quantile

Raster quantiles
atan2

Two argument arctangent function
hdr

Header files
as.logical

Change values to logical
cellsFromExtent

Cells from Extent
cut

Convert values to classes
KML

Write a KML file
Raster-class

Raster* classes
intersectExtent

Extent intersection
cellFrom

Get cell, row, or column number
Compare-methods

Compare Raster* objects
distanceFromPoints

Distance from points
saverasterstack

Save or open a RasterStack file
brick

Create a RasterBrick object
nlayers

Number of layers
ncell

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

Get a block of raster cell values
blockSize

Block size for writing files
getData

Get geographic data
compare

Compare
crop

Crop
Options

Global options for the raster package
substitute

Substitute values in a RasterLayer
distance

Distance
drawExtent

Create an Extent object by drawing on a map
projectRaster

Project a Raster object
pairs

Pairs plot (matrix of scatterplots)
density

Density plot
properties

Raster file properties
edge

Edge detection
extract

Extract values from Raster objects
subset

Subset layers in a Raster* object
raster-package

An overview of the functions in this package
cover

Replace NA values with values of other layers
rasterizeObsolete

Obsolete
image

Image
update

Update raster cells of files (on disk)
flip

Flip
interpolate

Interpolate
resample

Resample a Raster object
writeFormats

File types for writing
cellValues

Obsolete functions
Arith-methods

Arithmic with Raster* objects
origin

Origin
adjacency

Adjacency
clearValues

Clear values
polygonFromExtent

Polygon from Extent
inifile

Read a .ini file
as.matrix

Get a matrix with raster cell values
predict

Spatial model predictions
Extent-class

Class "Extent"
expand

Expand
Summary

Summary
stack

Create a RasterStack object
initialize

Intitialize
boxplot

Box plot of Raster objects
validCell

Validity of a cell, column or row number
dataType

Data type
rasterTmpFile

Temporary files
setValues

Set values of a Raster object
raster

Create a RasterLayer object
stats

Miscellaneous statistical functions
contour

Contour plot
factors

Factors
filename

Filename
mask

Mask values in a Raster object
NAvalue

Set the NA value of a RasterLayer
cellStats

Cell statistics
extent

Extent
hist

Histogram
Cluster

Use a multi-core (snow) cluster
extremeValues

Minimum and maximum values
resolution

Resolution
merge

Merge RasterLayers
focalFilter

Focal filter
transpose

transpose
mosaic

Merge RasterLayers using a function for overlapping areas
Logic-methods

Logical operators and functions
dim

Dimensions of a Raster* object
sampleRegular

Regular sample
focal

Focal
setExtent

Set the extent of a RasteLayer
alignExtent

Align an extent (object of class Extent)
rasterToPolygons

Raster to polygons conversion
pointDistance

Distance between points
Gain and offset

Gain and offset of values on file
Math-methods

Mathematical functions
zonal

Zonal statistics
rasterFromCells

Subset a raster by cell numbers
which

Which cells are TRUE?
addLayer

Add or drop a layer
xyFromCell

Coordinates from a row, column or cell number
replacement

Extract or replace cell values of a Raster object
rasterToPoints

Raster to points conversion
rectify

rectify a Raster object
rowFromCell

Row or column number from a cell number
autocorrelation

Spatial autocorrelation
isLonLat

Is this longitude/latitude data?
overlay

Overlay Raster objects
crosstab

Cross-tabulate
click

Click on a map
getValues

Get raster cell values
count

Count
plot3D

Interactive 3D plot of a RasterLayer
freq

Frequency table
shift

Shift
rasterToContour

Raster to contour lines conversion
direction

Direction
unique

Unique values
obsolete

Obsolete functions
round

Integer values
aggregate

Aggregate cells
setMinMax

Compute min and max values
projection

Get or set a projection
gridDistance

Grid distance
zoom

Zoom in on a plot
writeRaster

Write raster data to a file
persp

Perspective plot
readAll

Read values from disk
plot

Plot a Raster* object
writeValues

Write values to a file
calc

Calculate
reclass

Reclassify
sampleRandom

Random sample
stackSelect

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

Trim
movingFun

Moving functions
bands

Number of bands
rasterize

Rasterize points, lines, or polygons
disaggregate

Disaggregate
Extent coordinates

Coordinates of the Extent of a Raster object
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
misc stats

Miscellaneous statistical functions
spplot

Use spplot or ggplot to plot a Raster* object
rotated

Do the raster cells have a rotation?
rotate

Rotate
nudgeExtent

Round extent coordinates
head

Show the head or tail of a Raster* object
unionExtent

Extent union
rasterFromXYZ

Create a RasterLayer from x, y, z values
filledContour

Filled contour plot
hillShade

Hill shading
SampleInt

Sample integer values
unstack

Unstack
Slope and aspect

Slope and aspect
zApply

z (time) apply
Programming

Helper functions for programming
z-values

Get or set z-values
plotRGB

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