Learn R Programming

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

raster (version 1.9-1)

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.9-1

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

July 23rd, 2011

Functions in raster (1.9-1)

atan2

Two argument arc-tangent
Compare-methods

Compare Raster* objects
area

Size of cells
Logic-methods

Logical operators and functions
interpolate

Interpolate
calc

Calculate
cut

Convert values to classes
rectify

rectify a Raster object
filledContour

Filled contour plot
reclass

Reclassify
cellStats

Cell statistics
getValues

Get raster cell values
cellValues

Obsolete functions
resolution

Resolution
as.data.frame

Get a data.frame with raster cell values
Summary-methods

Summary methods
head

Show the head or tail of a Raster* object
trim

Trim
projectRaster

Project a Raster object
pairs

Pairs plot (matrix of scatterplots)
sampleRandom

Random sample
extract

Extract values from Raster objects
as.matrix

Get a matrix with raster cell values
writeFormats

File types for writing
compare

Compare
factors

Factors
blockSize

Block size for writing files
addLayer

Add or drop a layer
Raster-class

Raster* classes
gridDistance

Grid distance
intersectExtent

Extent intersection
cover

Replace NA values with values of other layers
origin

Origin
resample

Resample a Raster object
polygonFromExtent

Polygon from Extent
ncell

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

Histogram
Gain and offset

Gain and offset of values on file
direction

Direction
Extent coordinates

Coordinates of the Extent of a Raster object
plotRGB

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

Create a RasterBrick object
hillShade

Hill shading
setMinMax

Compute min and max values
raster

Create a RasterLayer object
adjacency

Adjacency
Arith-methods

Arithmic with Raster* objects
merge

Merge RasterLayers
which

Which cells are TRUE?
misc stats

Miscellaneous statistical functions
raster-package

An overview of the functions in this package
drawExtent

Create an Extent object by drawing on a map
disaggregate

Disaggregate
rasterFromXYZ

Create a RasterLayer from x, y, z values
dim

Dimensions of a Raster* object
unionExtent

Extent union
hdr

Header files
datasource

Are values in memory and/or on disk?
shift

Shift
overlay

Overlay Raster objects
edge

Edge detection
getData

Get geographic data
filename

Filename
replacement

Replace cell values of a Raster* object
extent

Extent
getValuesBlock

Get a block of raster cell values
cellFrom

Get cell, row, or column number
zonal

Zonal statistics
alignExtent

Align an extent (object of class Extent)
bands

Number of bands
pointDistance

Distance between points
crosstab

Cross-tabulate
as.raster

Coerce to a 'raster' object
initialize

Intitialize
zoom

Zoom in on a plot
writeValues

Write values to a file
draw

Draw a line or polygon
extension

Filename extensions
density

Density plot
count

Count
zApply

z (time) apply
mosaic

Merge RasterLayers using a function for overlapping areas
extremeValues

Minimum and maximum values
Extent-class

Class "Extent"
freq

Frequency table
Extract by index

Indexing to extract values of a Raster* object
contour

Contour plot
properties

Raster file properties
obsolete

Obsolete functions
focalFilter

Focal filter
click

Click on a map
round

Integer values
inifile

Read a .ini file
transpose

Transpose
Programming

Helper functions for programming
quantile

Raster quantiles
persp

Perspective plot
rotated

Do the raster cells have a rotation?
nlayers

Number of layers
movingFun

Moving functions
isLonLat

Is this longitude/latitude data?
rasterTmpFile

Temporary files
focal

Focal
writeRaster

Write raster data to a file
rasterFromCells

Subset a raster by cell numbers
rasterizeObsolete

Obsolete
saverasterstack

Save or open a RasterStack file
rasterToPoints

Raster to points conversion
readAll

Read values from disk
clearValues

Clear values
rasterize

Rasterize points, lines, or polygons
NAvalue

Set the NA value of a RasterLayer
predict

Spatial model predictions
plot

Plot a Raster* object
image

Image
setExtent

Set the extent of a RasteLayer
rasterToContour

Raster to contour lines conversion
boxplot

Box plot of Raster objects
autocorrelation

Spatial autocorrelation
validCell

Validity of a cell, column or row number
KML

Write a KML or KMZ file
unique

Unique values
subset

Subset layers in a Raster* object
sampleRegular

Regular sample
flip

Flip
substitute

Substitute values in a RasterLayer
z-values

Get or set z-values
unstack

Unstack
distance

Distance
nudgeExtent

Round extent coordinates
Math-methods

Mathematical functions
scalebar

scalebar
stack

Create a RasterStack object
expand

Expand
as.logical

Change values to logical
rasterToPolygons

Raster to polygons conversion
rowFromCell

Row or column number from a cell number
Slope and aspect

Slope and aspect
mask

Mask values in a Raster object
xyFromCell

Coordinates from a row, column or cell number
SampleInt

Sample integer values
Cluster

Use a multi-core (snow) cluster
Options

Global options for the raster package
setValues

Set values of a Raster object
distanceFromPoints

Distance from points
dataType

Data type
cellsFromExtent

Cells from Extent
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
projection

Get or set a projection
clump

Detect clumps
aggregate

Aggregate cells
spplot

Use spplot to plot a Raster* object
crop

Crop
stackSelect

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

Summary
update

Update raster cells of files (on disk)
rotate

Rotate
adjacent

Adjacent cells