Learn R Programming

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

raster (version 1.3-11)

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-11

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

August 12th, 2010

Functions in raster (1.3-11)

calc

Calculate
linesToRaster

Lines to raster
stats

Miscellaneous statistical functions
draw

Draw a line or polygon
cellStats

Cell statistics
Summary-methods

Summary methods
crosstab

Cross-tabulate
mosaic

mosaic RasterLayers
aggregate

Aggregate
plot

Plot a Raster* object
origin

Origin
rasterFromCells

Subset a raster by cell numbers
resample

Resample
KML

KML
as.logical

Change values to logical
brick

Create a RasterBrick object
edge

Edge detection
which

Which cells are TRUE?
mask

mask
compare

Compare
focalValues

Extract focal values
gridDistance

Grid distance
initialize

Intitialize
alignExtent

Align an extent (object of class Extent)
cellsFromExtent

Cells from Extent
copyRasterFile

Copy or move a raster file
Arith-methods

Arithmic with Raster* objects
pointDistance

Distance between points
Function writing

Helper functions to use in new functions you develop
persp

Perspective plot
shift

Shift
raster-package

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

Extract values from a RasterLayer by polygons
bands

Bands
focal

Focal
inifile

Read a .ini file
focalFilter

Focal filter
projection

projection
changeStack

Add or drop a layer
merge

Merge RasterLayers
substitute

Substitute values in a RasterLayer
dimensions

Dimensions of a Raster* object
Extent-class

Class "Extent"
rotate

Rotate
dataType

Data type
NAvalue

Set the NA value of a RasterLayer
filename

Filename
area

Size of cells
zoom

Zoom in on a plot
Logic-methods

Logical operators and functions
click

Click
getData

Get geographic data
raster

Create a RasterLayer object
drawExtent

Draw extet
properties

Raster file properties
nudgeExtent

Round extent coordinates
trim

Trim
interpolate

Interpolate
Sample

Random or regular sample
overlay

Overlay
pairs

Pair plots
distance

Distance
validCell

Validity of a cell, column or row number
setMinMax

Compute min and max values
setExtent

Set the extent of a RasteLayer
setValues

Set values
unique

Unique values
round

Integer values
writeValues

Write values to a file
unionExtent

Extent union
plotRGB

Red-Green-Blue plot of a multi-layered Raster object
Compare-methods

Compare Raster* objects
read

Read values from disk
stack

Create a RasterStack object
extension

Filename extensions
unstack

Unstack
extremeValues

Minimum and maximum values
disaggregate

Disaggregate
writeRasterHdr

Header files
count

Count
writeRaster

Write raster data to a file
filledContour

Filled contour plot
intersectExtent

Extent intersection
SampleInt

Sample integer values
rowFromCell

Row or column number from a cell number
xyFromCell

Coordinates from a row, column or cell number
Summary

Summary
adjacency

Adjacency
density

Density plot
factors

Factors
indexing

Values from index and replacement
resolution

Resolution
distanceFromPoints

Distance from points
cellFrom

Get cell, row, or column number
polygonsToRaster

Polygons to raster conversion
rasterFromXYZ

Create a RasterLayer from x, y, z values
rasterToPoints

Raster to points conversion
nlayers

Layers
contour

Contour plot
zonal

Zonal statistics
xyValues

Extract values at xy coordinates
cellValues

Extract values for one or more cells
image

Image
rasterToContour

Raster to contour lines conversion
isLonLat

Is this longitude/latitude data?
clump

Detect clumps
values

Get raster values
cover

Cover
data

Are values in memory and/or on disk?
coordinates

Coordinates
crop

Crop
getValuesBlock

Get raster cell values
quantile

RasterLayer quantiles
flip

Flip
expand

Expand
pointsToRaster

Point to raster conversion
rasterToPolygons

Raster to polygons conversion
extent

Extent
getValues

Get raster cell values
freq

Frequency table
hist

Histogram
plot3D

Interactive 3D plot of a RasterLayer
projectRaster

project a RasterLayer
reclass

Reclassify
polygonFromExtent

Polygon from Extent
Options

Global options for the raster package
writeFormats

File types for writing
Math-methods

Mathematical functions
Raster-class

Raster* classes
direction

Direction
worldFile

Header files
predict

Spatial model predictions
rasterTmpFile

Temporary files
saverasterstack

Save or open a RasterStack file