Learn R Programming

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

raster (version 1.1.7)

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

164,948

Version

1.1.7

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

June 4th, 2010

Functions in raster (1.1.7)

polygonFromExtent

Polygon from Extent
calc

Calculate
projectRaster

project a RasterLayer
Sample

Random or regular sample
dataType

Data type
predict

Spatial model predictions
cellStats

Cell statistics
initialize

Intitialize
round

Integer values
gridDistance

Grid distance
Options

Global options for the raster package
brick

Create a RasterBrick object
mosaic

mosaic RasterLayers
pointDistance

Distance between points
as.logical

as.logical
bands

Bands
inifile

Read a .ini file
focalFilter

Focal filter
aggregate

Aggregate
Compare-methods

Compare Raster* objects
plotRGB

Red-Green-Blue plot of RasterLayers
factors

Factors
Function writing

Helper functions to use in new functions you develop
Raster-class

Raster* classes
alignExtent

Align an extent (object of class Extent)
clump

Detect clumps
cover

Cover
edge

Edge detection
distance

Distance
pointsToRaster

Point to raster conversion
getValues

Get raster cell values
isLonLat

Is this longitude/latitude data?
disaggregate

Disaggregate
overlay

Overlay
freq

Frequency table
setExtent

Set the extent of a RasteLayer
KML

KML
getValuesBlock

Get raster cell values
indexing

Values from index and replacement
persp

Perspective plot
contour

Contour plot
click

Click
dimensions

Dimensions of a Raster* object
polygonValues

Extract values from a RasterLayer by polygons
rasterToPoints

Raster to points conversion
SampleInt

Sample integer values
shift

Shift
extent

Extent
focal

Focal
Arith-methods

Arithmic with rasters
filename

Filename
image

Image
extremeValues

Minimum and maximum values
raster-package

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

Layers
unstack

Unstack
resolution

Resolution
setValues

Set values
cellsFromExtent

Cells from Extent
count

Count
linesToRaster

Lines to raster
pairs

Pair plots
unionExtent

Extent union
flip

Flip
focalValues

Extract focal values
mask

mask
distanceFromPoints

Distance from points
origin

Origin
density

Density plot
rotate

Rotate
Summary-methods

Summary methods
merge

Merge RasterLayers
interpolate

Interpolate
polygonsToRaster

Polygons to raster conversion
filledContour

Filled contour plot
quantile

RasterLayer quantiles
extension

Filename extensions
nudgeExtent

Round extent coordinates
resample

Resample
reclass

Reclassify
writeRaster

Write raster data to a file
crop

Crop
substitute

Substitute values in a RasterLayer
NAvalue

Set the NA value of a RasterLayer
rowFromCell

Row or column number from a cell number
rasterToContour

Raster to contour lines conversion
writeFormats

File types for writing
trim

Trim
zonal

Zonal statistics
unique

Unique values
zoom

Zoom in on a plot
rasterFromCells

Subset a raster by cell numbers
xyValues

Extract values at xy coordinates
stats

Miscellaneous statistical functions
saverasterstack

Save or open a RasterStack file
copyRasterFile

Copy or move a raster file
intersectExtent

Extent intersection
plot3D

Interactive 3D plot of a RasterLayer
properties

Raster file properties
worldFile

Header files
read

Read values from disk
coordinates

Coordinates
area

Size of cells
changeStack

Add or drop a layer
crosstab

Cross-tabulate
values

Get raster values
validCell

Validity of a cell, column or row number
hist

Histogram
adjacency

Adjacency
which

Which cells are TRUE?
writeRasterHdr

Header files
drawExtent

Draw extet
stack

Create a RasterStack object
cellValues

Extract values for one or more cells
cellFrom

Get cell, row, or column number
xyFromCell

Coordinates from a row, column or cell number
getData

Get geographic data
expand

Expand
setMinMax

Compute min and max values
setProjection

projection
rasterTmpFile

Temporary files
Summary

Summary
Math-methods

Mathematical functions
compare

Compare
draw

Draw a line or polygon
rasterToPolygons

Raster to polygons conversion
raster

Create a RasterLayer object
dataProperties

Data properties
Logic-methods

Logical operators and functions
Extent-class

Class "Extent"
direction

Direction
plot

Plot a Raster* object
writeValues

Write values to a file