Learn R Programming

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

raster (version 2.0-41)

raster: Geographic data analysis and modeling

Description

Reading, writing, manipulating, analyzing and modeling of gridded spatial data. The package implements basic and high-level functions and processing of very large files is supported.

Copy Link

Version

Install

install.packages('raster')

Monthly Downloads

153,616

Version

2.0-41

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

December 24th, 2012

Functions in raster (2.0-41)

clearValues

Clear values
getValuesBlock

Get a block of raster cell values
Arith-methods

Arithmetic with Raster* objects
Extent coordinates

Coordinates of the Extent of a Raster object
layerize

Layerize
rasterFromCells

Subset a raster by cell numbers
contour

Contour plot
atan2

Two argument arc-tangent
Extent-class

Class "Extent"
extension

Filename extensions
compareRaster

Compare Raster objects
extent

Extent
Math-methods

Mathematical functions
Compare-methods

Compare Raster* objects
bands

Number of bands
cv

Coefficient of variation
buffer

buffer
addLayer

Add or drop a layer
Logic-methods

Logical operators and functions
focal

Focal values
inifile

Read a .ini file
adjacent

Adjacent cells
boxplot

Box plot of Raster objects
getValuesFocal

Get focal raster cell values
direction

Direction
drawExtent

Create an Extent object by drawing on a map
brick

Create a RasterBrick object
KML

Write a KML or KMZ file
datasource

Are values in memory and/or on disk?
Extract by index

Indexing to extract values of a Raster* object
adjacency

Pairs of adjacent cells
as.logical

Change values to logical
barplot

Bar plot of a RasterLayer
cellFrom

Get cell, row, or column number
as.data.frame

Get a data.frame with raster cell values, or coerce SpatialPolygons, Lines, or Points to a data.frame
as.raster

Coerce to a 'raster' object
modal

modal value
image

Image
pairs

Pairs plot (matrix of scatterplots)
extremeValues

Minimum and maximum values
crop

Crop
mosaic

Merge Raster* objects using a function for overlapping areas
freq

Frequency table
intersect

Intersect Extent
dataType

Data type
Obsolete

Obsolete (depracated) functions
autocorrelation

Spatial autocorrelation
area

Size of cells
NAvalue

Set the NA value of a RasterLayer
getData

Get geographic data
aggregate

Aggregate cells
plotRGB

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

Intitialize
alignExtent

Align an extent (object of class Extent)
raster

Create a RasterLayer object
validCell

Validity of a cell, column or row number
resample

Resample a Raster object
extract

Extract values from Raster objects
flip

Flip
hillShade

Hill shading
writeValues

Write values to a file
isLonLat

Is this longitude/latitude data?
Raster-class

Raster* classes
distance

Distance
cellsFromExtent

Cells from Extent
stackApply

Apply a function on subsets of a RasterStack or RasterBrick
Extent math

round Extent coordinates
merge

Merge Raster* objects
setExtent

Set the extent of a RasterLayer
ncell

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

Read or write a shapefile
overlay

Overlay Raster objects
origin

Origin
resolution

Resolution
rasterToPolygons

Raster to polygons conversion
head

Show the head or tail of a Raster* object
cluster

Use a multi-core cluster
layerStats

Correlation and (weighted) covariance
match

Value matching for Raster* objects
approxNA

Estimate values for cells that are NA
setMinMax

Compute min and max values
movingFun

Moving functions
nlayers

Number of layers
reclassify

Reclassify
pointDistance

Distance between points
stackSelect

Select cell values from a multi-layer Raster* object
Gain and offset

Gain and offset of values on file
Summary-methods

Summary methods
disaggregate

Disaggregate
writeRaster

Write raster data to a file
substitute

Substitute values in a Raster* object
hist

Histogram
which

Which cells are TRUE?
Slope and aspect

Slope and aspect
Options

Global options for the raster package
cut

Convert values to classes
density

Density plot
sampleRegular

Regular sample
shift

Shift
rotated

Do the raster cells have a rotation?
predict

Spatial model predictions
cellStats

Cell statistics
as.matrix

Get a matrix with raster cell values
blockSize

Block size for writing files
quantile

Raster quantiles
projection

Get or set a coordinate reference system (projection)
names

Names of raster layers
scalebar

scalebar
persp

Perspective plot
filename

Filename
crosstab

Cross-tabulate
subset

Subset layers in a Raster* object
readAll

Read values from disk
filledContour

Filled contour plot
sampleRandom

Random sample
rotate

Rotate
cover

Replace NA values with values of other layers
clump

Detect clumps
select

Geometric subsetting
projectRaster

Project a Raster object
Summary

Summary
terrain

Terrain characteristics
scale

Scale values
zoom

Zoom in on a plot
replacement

Replace cell values of a Raster* object
plot

Plot a Raster* object
click

Query by clicking on a map
gridDistance

Distance on a grid
rasterFromXYZ

Create a RasterLayer from x, y, z values
union

Union Extent
transpose

Transpose
writeFormats

File types for writing
mask

Mask values in a Raster object
rowFromCell

Row or column number from a cell number
raster-package

Overview of the functions in the raster package
weighted.mean

Weighted mean of rasters
draw

Draw a line or polygon
xyFromCell

Coordinates from a row, column or cell number
rasterTmpFile

Temporary files
extend

Extend
setValues

Set values of a Raster object
properties

Raster file properties
round

Integer values
z-values

Get or set z-values
hdr

Header files
trim

Trim
interpolate

Interpolate
update

Update raster cells of files (on disk)
rasterToContour

Raster to contour lines conversion
SampleInt

Sample integer values
spplot

Use spplot to plot a Raster* object
unique

Unique values
text

Add labels to a map
calc

Calculate
Programming

Helper functions for programming
rasterize

Rasterize points, lines, or polygons
stackSave

Save or open a RasterStack file
unstack

Unstack
zonal

Zonal statistics
dim

Dimensions of a Raster* object
distanceFromPoints

Distance from points
edge

Edge detection
factors

Factors
getValues

Get raster cell values
rectify

rectify a Raster object
stack

Create a RasterStack object
rasterToPoints

Raster to points conversion
sampleStratified

Stratified random sample
zApply

z (time) apply