Learn R Programming

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

raster (version 1.6-10)

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.6-10

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

November 3rd, 2010

Functions in raster (1.6-10)

extension

Filename extensions
setValues

Set values of a Raster object
plotRGB

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

Convert values to classes
brick

Create a RasterBrick object
as.matrix

Get a matrix with raster cell values
plot3D

Interactive 3D plot of a RasterLayer
origin

Origin
Extent-class

Class "Extent"
draw

Draw a line or polygon
Compare-methods

Compare Raster* objects
blockSize

Block size for writing files
Math-methods

Mathematical functions
interpolate

Interpolate
alignExtent

Align an extent (object of class Extent)
aggregate

Aggregate
raster

Create a RasterLayer object
KML

Write a KML file
quantile

RasterLayer quantiles
bands

Number of bands
rasterFromCells

Subset a raster by cell numbers
filename

Filename
factors

Factors
direction

Direction
focalFilter

Focal filter
contour

Contour plot
ncell

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

Raster file properties
cellStats

Cell statistics
changeStack

Add or drop a layer
calc

Calculate
density

Density plot
count

Count
getValuesBlock

Get a block of raster cell values
intersectExtent

Extent intersection
readAll

Read values from disk
pointDistance

Distance between points
isLonLat

Is this longitude/latitude data?
gridDistance

Grid distance
projection

Get or set a projection
mosaic

Merge RasterLayers using a function for overlapping areas
cellValues

Extract values for one or more cells / points
initialize

Intitialize
predict

Spatial model predictions
unionExtent

Extent union
clearValues

Clear values
extract

Extract values from Raster objects
persp

Perspective plot
crop

Crop
nlayers

Number of layers
getData

Get geographic data
worldFile

Header files
expand

Expand
Raster-class

Raster* classes
filledContour

Filled contour plot
click

Click
crosstab

Cross-tabulate
Arith-methods

Arithmic with Raster* objects
getValues

Get raster cell values
flip

Flip
Gain and offset

Gain and offset of values on file
overlay

Overlay Raster objects
compare

Compare
Logic-methods

Logical operators and functions
Function writing

Helper functions to use in new functions you develop
nudgeExtent

Round extent coordinates
polygonsToRaster

Polygons to raster conversion
resample

Resample
extent

Extent
reclass

Reclassify
freq

Frequency table
disaggregate

Disaggregate
rasterFromXYZ

Create a RasterLayer from x, y, z values
extremeValues

Minimum and maximum values
hist

Histogram
mask

Mask values in a Raster object
datasource

Are values in memory and/or on disk?
polygonFromExtent

Polygon from Extent
obsolete

Obsolete functions
cellsFromExtent

Cells from Extent
adjacency

Adjacency
linesToRaster

Lines to raster
inifile

Read a .ini file
dataType

Data type
pairs

Pair plots
cellFrom

Get cell, row, or column number
dimensions

Dimensions of a Raster* object
Summary-methods

Summary methods
raster-package

Management, analysis and modeling of raster-type geographic data
trim

Trim
rasterToPolygons

Raster to polygons conversion
zonal

Zonal statistics
drawExtent

Draw extet
cover

Cover
distanceFromPoints

Distance from points
shift

Shift
indexing

Get or replace values of Raster objects
focal

Focal
merge

Merge RasterLayers
pointsToRaster

Point to raster conversion
image

Image
rotate

Rotate
saverasterstack

Save or open a RasterStack file
plot

Plot a Raster* object
writeFormats

File types for writing
which

Which cells are TRUE?
clump

Detect clumps
edge

Edge detection
substitute

Substitute values in a RasterLayer
projectRaster

Project a Raster object
rowFromCell

Row or column number from a cell number
validCell

Validity of a cell, column or row number
writeHdr

Header files
rasterToContour

Raster to contour lines conversion
round

Integer values
writeRaster

Write raster data to a file
NAvalue

Set the NA value of a RasterLayer
as.logical

Change values to logical
coordinates

Coordinates
xyFromCell

Coordinates from a row, column or cell number
setExtent

Set the extent of a RasteLayer
stack

Create a RasterStack object
Sample

Random or regular sample
writeValues

Write values to a file
area

Size of cells
rasterToPoints

Raster to points conversion
Summary

Summary
distance

Distance
rasterTmpFile

Temporary files
setMinMax

Compute min and max values
resolution

Resolution
stats

Miscellaneous statistical functions
unstack

Unstack
unique

Unique values
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
Options

Global options for the raster package
subset

Subset layers in a Raster* object
SampleInt

Sample integer values
zoom

Zoom in on a plot