Learn R Programming

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

raster (version 1.5-8)

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 functons, 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-8

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

September 21st, 2010

Functions in raster (1.5-8)

bands

Bands
validCell

Validity of a cell, column or row number
Function writing

Helper functions to use in new functions you develop
Compare-methods

Compare Raster* objects
extremeValues

Minimum and maximum values
polygonValues

Extract values from a RasterLayer by polygons
writeFormats

File types for writing
cellsFromExtent

Cells from Extent
aggregate

Aggregate
contour

Contour plot
cellValues

Extract values for one or more cells
image

Image
draw

Draw a line or polygon
clump

Detect clumps
disaggregate

Disaggregate
zonal

Zonal statistics
dataType

Data type
overlay

Overlay Raster objects
drawExtent

Draw extet
quantile

RasterLayer quantiles
rotate

Rotate
zoom

Zoom in on a plot
pointDistance

Distance between points
pairs

Pair plots
reclass

Reclassify
unionExtent

Extent union
raster-package

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

Write raster data to a file
filledContour

Filled contour plot
click

Click
coordinates

Coordinates
expand

Expand
writeValues

Write values to a file
gridDistance

Grid distance
intersectExtent

Extent intersection
getData

Get geographic data
as.logical

Change values to logical
linesToRaster

Lines to raster
merge

Merge RasterLayers
alignExtent

Align an extent (object of class Extent)
indexing

Values from index and replacement
focalFilter

Focal filter
shift

Shift
edge

Edge detection
KML

KML
focal

Focal
rasterFromCells

Subset a raster by cell numbers
changeStack

Add or drop a layer
Extent-class

Class "Extent"
interpolate

Interpolate
area

Size of cells
projectRaster

project a RasterLayer
adjacency

Adjacency
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
cellFrom

Get cell, row, or column number
trim

Trim
setValues

Set values
resample

Resample
extension

Filename extensions
predict

Spatial model predictions
Logic-methods

Logical operators and functions
Arith-methods

Arithmic with Raster* objects
getValues

Get raster cell values
polygonsToRaster

Polygons to raster conversion
raster

Create a RasterLayer object
SampleInt

Sample integer values
nlayers

Layers
mosaic

mosaic RasterLayers
mask

Mask values in a Raster object
origin

Origin
calc

Calculate
compare

Compare
Summary

Summary
crosstab

Cross-tabulate
cellStats

Cell statistics
getValuesBlock

Get raster cell values
hist

Histogram
distance

Distance
flip

Flip
brick

Create a RasterBrick object
crop

Crop
NAvalue

Set the NA value of a RasterLayer
Math-methods

Mathematical functions
direction

Direction
count

Count
cover

Cover
Summary-methods

Summary methods
stats

Miscellaneous statistical functions
plotRGB

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

Raster to contour lines conversion
rowFromCell

Row or column number from a cell number
rasterToPolygons

Raster to polygons conversion
rasterFromXYZ

Create a RasterLayer from x, y, z values
saverasterstack

Save or open a RasterStack file
density

Density plot
unique

Unique values
xyValues

Extract values at xy coordinates
round

Integer values
rasterTmpFile

Temporary files
freq

Frequency table
worldFile

Header files
properties

Raster file properties
filename

Filename
resolution

Resolution
plot

Plot a Raster* object
focalValues

Extract focal values
inifile

Read a .ini file
initialize

Intitialize
writeRasterHdr

Header files
readAll

Read values from disk
setExtent

Set the extent of a RasteLayer
stack

Create a RasterStack object
setMinMax

Compute min and max values
datasource

Are values in memory and/or on disk?
Raster-class

Raster* classes
substitute

Substitute values in a RasterLayer
xyFromCell

Coordinates from a row, column or cell number
distanceFromPoints

Distance from points
nudgeExtent

Round extent coordinates
Gain and offset

Gain and offset of values on file
plot3D

Interactive 3D plot of a RasterLayer
isLonLat

Is this longitude/latitude data?
pointsToRaster

Point to raster conversion
projection

projection
rasterToPoints

Raster to points conversion
subset

Subset layers in a Raster* object
blockSize

Block size for writing files
Options

Global options for the raster package
factors

Factors
Sample

Random or regular sample
unstack

Unstack
dimensions

Dimensions of a Raster* object
extent

Extent
persp

Perspective plot
polygonFromExtent

Polygon from Extent
which

Which cells are TRUE?