Learn R Programming

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

raster (version 1.5-16)

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.5-16

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

October 11th, 2010

Functions in raster (1.5-16)

crop

Crop
linesToRaster

Lines to raster
Raster-class

Raster* classes
Summary

Summary
crosstab

Cross-tabulate
Logic-methods

Logical operators and functions
getValues

Get raster cell values
polygonFromExtent

Polygon from Extent
lineValues

Extract values from a RasterLayer by lines
contour

Contour plot
filledContour

Filled contour plot
Arith-methods

Arithmic with Raster* objects
Extent-class

Class "Extent"
as.logical

Change values to logical
interpolate

Interpolate
flip

Flip
hist

Histogram
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
cover

Cover
compare

Compare
rasterTmpFile

Temporary files
Gain and offset

Gain and offset of values on file
KML

KML
resolution

Resolution
clump

Detect clumps
dimensions

Dimensions of a Raster* object
origin

Origin
distanceFromPoints

Distance from points
pointDistance

Distance between points
raster

Create a RasterLayer object
expand

Expand
coordinates

Coordinates
mask

Mask values in a Raster object
filename

Filename
polygonsToRaster

Polygons to raster conversion
plotRGB

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

Data type
disaggregate

Disaggregate
worldFile

Header files
aggregate

Aggregate
bands

Bands
datasource

Are values in memory and/or on disk?
distance

Distance
focalFilter

Focal filter
cellFrom

Get cell, row, or column number
intersectExtent

Extent intersection
properties

Raster file properties
writeValues

Write values to a file
xyValues

Extract values at xy coordinates
plot3D

Interactive 3D plot of a RasterLayer
cellStats

Cell statistics
unique

Unique values
density

Density plot
persp

Perspective plot
draw

Draw a line or polygon
Math-methods

Mathematical functions
calc

Calculate
Compare-methods

Compare Raster* objects
area

Size of cells
substitute

Substitute values in a RasterLayer
polygonValues

Extract values from a RasterLayer by polygons
rotate

Rotate
click

Click
image

Image
extension

Filename extensions
merge

Merge RasterLayers
writeFormats

File types for writing
edge

Edge detection
extremeValues

Minimum and maximum values
factors

Factors
getData

Get geographic data
adjacency

Adjacency
nlayers

Layers
pointsToRaster

Point to raster conversion
rowFromCell

Row or column number from a cell number
drawExtent

Draw extet
blockSize

Block size for writing files
quantile

RasterLayer quantiles
brick

Create a RasterBrick object
overlay

Overlay Raster objects
alignExtent

Align an extent (object of class Extent)
Options

Global options for the raster package
changeStack

Add or drop a layer
Summary-methods

Summary methods
raster-package

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

Get raster cell values
focal

Focal
direction

Direction
trim

Trim
cellValues

Extract values for one or more cells
count

Count
validCell

Validity of a cell, column or row number
projection

projection
extent

Extent
initialize

Intitialize
subset

Subset layers in a Raster* object
mosaic

mosaic RasterLayers
resample

Resample
predict

Spatial model predictions
cellsFromExtent

Cells from Extent
rasterToContour

Raster to contour lines conversion
gridDistance

Grid distance
readAll

Read values from disk
Function writing

Helper functions to use in new functions you develop
plot

Plot a Raster* object
rasterToPoints

Raster to points conversion
setValues

Set values
zonal

Zonal statistics
rasterFromXYZ

Create a RasterLayer from x, y, z values
round

Integer values
SampleInt

Sample integer values
writeRasterHdr

Header files
reclass

Reclassify
saverasterstack

Save or open a RasterStack file
Sample

Random or regular sample
stack

Create a RasterStack object
rasterToPolygons

Raster to polygons conversion
NAvalue

Set the NA value of a RasterLayer
unstack

Unstack
rasterFromCells

Subset a raster by cell numbers
projectRaster

project a RasterLayer
isLonLat

Is this longitude/latitude data?
which

Which cells are TRUE?
pairs

Pair plots
stats

Miscellaneous statistical functions
writeRaster

Write raster data to a file
nudgeExtent

Round extent coordinates
unionExtent

Extent union
setExtent

Set the extent of a RasteLayer
zoom

Zoom in on a plot
focalValues

Extract focal values
shift

Shift
xyFromCell

Coordinates from a row, column or cell number
inifile

Read a .ini file
freq

Frequency table
indexing

Values from index and replacement
setMinMax

Compute min and max values