Learn R Programming

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

raster (version 1.3-4)

Geographic analysis and modeling with raster data

Description

Package for reading, writing, and manipulating raster (grid) type geographic (spatial) data

Copy Link

Version

Install

install.packages('raster')

Monthly Downloads

171,298

Version

1.3-4

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

July 27th, 2010

Functions in raster (1.3-4)

cellFrom

Get cell, row, or column number
Arith-methods

Arithmic with rasters
plot

Plot a Raster* object
raster

Create a RasterLayer object
calc

Calculate
setMinMax

Compute min and max values
clump

Detect clumps
coordinates

Coordinates
filledContour

Filled contour plot
inifile

Read a .ini file
resolution

Resolution
Summary

Summary
Extent-class

Class "Extent"
pairs

Pair plots
changeStack

Add or drop a layer
filename

Filename
worldFile

Header files
getValuesBlock

Get raster cell values
image

Image
unstack

Unstack
mask

mask
Compare-methods

Compare Raster* objects
aggregate

Aggregate
cellsFromExtent

Cells from Extent
brick

Create a RasterBrick object
interpolate

Interpolate
rotate

Rotate
origin

Origin
substitute

Substitute values in a RasterLayer
plotRGB

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

Expand
cellStats

Cell statistics
crosstab

Cross-tabulate
drawExtent

Draw extet
extent

Extent
stats

Miscellaneous statistical functions
focalFilter

Focal filter
intersectExtent

Extent intersection
writeFormats

File types for writing
Logic-methods

Logical operators and functions
overlay

Overlay
extension

Filename extensions
pointsToRaster

Point to raster conversion
as.logical

as.logical
raster-package

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

Align an extent (object of class Extent)
density

Density plot
unique

Unique values
freq

Frequency table
contour

Contour plot
persp

Perspective plot
draw

Draw a line or polygon
getValues

Get raster cell values
focal

Focal
count

Count
Summary-methods

Summary methods
rasterToPolygons

Raster to polygons conversion
cellValues

Extract values for one or more cells
gridDistance

Grid distance
quantile

RasterLayer quantiles
projectRaster

project a RasterLayer
polygonValues

Extract values from a RasterLayer by polygons
Options

Global options for the raster package
cover

Cover
dataType

Data type
reclass

Reclassify
polygonsToRaster

Polygons to raster conversion
Sample

Random or regular sample
saverasterstack

Save or open a RasterStack file
compare

Compare
bands

Bands
nudgeExtent

Round extent coordinates
click

Click
direction

Direction
crop

Crop
plot3D

Interactive 3D plot of a RasterLayer
distance

Distance
validCell

Validity of a cell, column or row number
dimensions

Dimensions of a Raster* object
rasterToPoints

Raster to points conversion
getData

Get geographic data
projection

projection
data

Are values in memory and/or on disk?
rasterToContour

Raster to contour lines conversion
hist

Histogram
unionExtent

Extent union
stack

Create a RasterStack object
polygonFromExtent

Polygon from Extent
rowFromCell

Row or column number from a cell number
zoom

Zoom in on a plot
rasterFromCells

Subset a raster by cell numbers
NAvalue

Set the NA value of a RasterLayer
which

Which cells are TRUE?
KML

KML
writeRaster

Write raster data to a file
Raster-class

Raster* classes
Math-methods

Mathematical functions
extremeValues

Minimum and maximum values
copyRasterFile

Copy or move a raster file
factors

Factors
adjacency

Adjacency
Function writing

Helper functions to use in new functions you develop
linesToRaster

Lines to raster
isLonLat

Is this longitude/latitude data?
predict

Spatial model predictions
focalValues

Extract focal values
nlayers

Layers
zonal

Zonal statistics
properties

Raster file properties
merge

Merge RasterLayers
setExtent

Set the extent of a RasteLayer
flip

Flip
initialize

Intitialize
setValues

Set values
writeValues

Write values to a file
shift

Shift
trim

Trim
pointDistance

Distance between points
writeRasterHdr

Header files
rasterTmpFile

Temporary files
round

Integer values
xyValues

Extract values at xy coordinates
area

Size of cells
edge

Edge detection
indexing

Values from index and replacement
resample

Resample
rasterFromXYZ

Create a RasterLayer from x, y, z values
read

Read values from disk
values

Get raster values
disaggregate

Disaggregate
distanceFromPoints

Distance from points
mosaic

mosaic RasterLayers
SampleInt

Sample integer values
xyFromCell

Coordinates from a row, column or cell number