raster: Geographic Data Analysis and Modeling

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

AuthorRobert J. Hijmans [cre, aut], Jacob van Etten [ctb], Joe Cheng [ctb], Matteo Mattiuzzi [ctb], Michael Sumner [ctb], Jonathan A. Greenberg [ctb], Oscar Perpinan Lamigueiro [ctb], Andrew Bevan [ctb], Etienne B. Racine [ctb], Ashton Shortridge [ctb]
Date of publication2016-06-02 18:31:24
MaintainerRobert J. Hijmans <r.hijmans@gmail.com>
LicenseGPL (>= 3)
Version2.5-8
http://cran.r-project.org/package=raster

View on CRAN

Man pages

addLayer: Add or drop a layer

adjacent: Adjacent cells

aggregate: Aggregate raster cells or SpatialPolygons/Lines

alignExtent: Align an extent (object of class Extent)

animate: Animate layers of a Raster* object

approxNA: Estimate values for cell values that are 'NA' by...

area: Size of cells

Arith-methods: Arithmetic with Raster* objects

as.data.frame: Get a data.frame with raster cell values, or coerce...

as.list: Create a list of RasterLayer objects

as.logical-methods: Change cell values to logical or integer values

as.matrix: Get a vector, matrix, or array with raster cell values

as.raster: Coerce to a 'raster' object

atan2: Two argument arc-tangent

autocor: Spatial autocorrelation

bands: Number of bands

barplot: Bar plot of a RasterLayer

bind: Bind Spatial* objects

blockSize: Block size for writing files

boundaries: boundaries (edges) detection

boxplot: Box plot of Raster objects

brick: Create a RasterBrick object

buffer: buffer

calc: Calculate

cellFrom: Get cell, row, or column number

cellsFromExtent: Cells from Extent

cellStats: Statistics across cells

clamp: Clamp values

clearValues: Clear values

click: Query by clicking on a map

clump: Detect clumps

cluster: Use a multi-core cluster

colortable: colortable

compare: Compare Raster objects

compareCRS: Partially compare two CRS objects

Compare-methods: Compare Raster* objects

contour: Contour plot

coordinates: Coordinates of the Extent of a Raster object

corLocal: Local correlation coefficient

cover: Replace NA values with values of other layers

crop: Crop

crosstab: Cross-tabulate

cut: Convert values to classes

cv: Coefficient of variation

datasource: Are values in memory and/or on disk?

dataType: Data type

density: Density plot

dimensions: Dimensions of a Raster* object

direction: Direction

disaggregate: Disaggregate

distance: Distance

distanceFromPoints: Distance from points

draw: Draw a line or polygon

drawExtent: Create an Extent object by drawing on a map

erase: Erase parts of a Spatial* object

extend: Extend

extension: Filename extensions

extent: Extent

Extent-class: Class "Extent"

extract: Extract values from Raster objects

extractIndex: Indexing to extract values of a Raster* object

extremeValues: Minimum and maximum values

factor: Factors

filename: Filename

filledContour: Filled contour plot

flip: Flip

flowpath: Flow path

focal: Focal values

focalWeight: Focal weights matrix

freq: Frequency table

gainoffset: Gain and offset of values on file

geom: Get the coordinates of a vector type Spatial* object

getData: Get geographic data

getValues: Get raster cell values

getValuesBlock: Get a block of raster cell values

getValuesFocal: Get focal raster cell values

gridDistance: Distance on a grid

hdrFiles: Header files

headtail: Show the head or tail of a Raster* object

hillShade: Hill shading

hist: Histogram

image: Image

iniFile: Read a .ini file

init: Intitialize a Raster object with values

interpolate: Interpolate

intersect: Intersect

isLonLat: Is this longitude/latitude data?

KML: Write a KML or KMZ file

layerize: Layerize

layerStats: Correlation and (weighted) covariance

localFun: Local functions

Logic-methods: Logical operators and functions

mask: Mask values in a Raster object

match: Value matching for Raster* objects

Math-methods: Mathematical functions

merge: Merge Raster* objects

metadata: Metadata

modal: modal value

mosaic: Merge Raster* objects using a function for overlapping areas

movingFun: Moving functions

names: Names of raster layers

NAvalue: Set the NA value of a RasterLayer

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

nlayers: Number of layers

origin: Origin

overlay: Overlay Raster objects

pairs: Pairs plot (matrix of scatterplots)

persp: Perspective plot

plot: Plot a Raster* object

plotRGB: Red-Green-Blue plot of a multi-layered Raster object

pointdistance: Distance between points

predict: Spatial model predictions

programming: Helper functions for programming

projection: Get or set a coordinate reference system (projection)

projectRaster: Project a Raster object

properties: Raster file properties

quantile: Raster quantiles

raster: Create a RasterLayer object

Raster-classes: Raster* classes

rasterFromCells: Subset a raster by cell numbers

rasterFromXYZ: Create a Raster* object from x, y, z values

rasterize: Rasterize points, lines, or polygons

rasterOptions: Global options for the raster package

raster-package: Overview of the functions in the raster package

rasterTmpFile: Temporary files

rasterToContour: Raster to contour lines conversion

rasterToPoints: Raster to points conversion

rasterToPolygons: Raster to polygons conversion

readAll: Read values from disk

reclassify: Reclassify

rectify: rectify a Raster object

replacement: Replace cell values or layers of a Raster* object

resample: Resample a Raster object

resolution: Resolution

RGB: Create a Red-Green-Blue Raster object

rotate: Rotate

rotated: Do the raster cells have a rotation?

round: Integer values

roundExtent: round Extent coordinates

rowFromCell: Row or column number from a cell number

rowSums: rowSums and colSums for Raster objects

sampleInt: Sample integer values

sampleRandom: Random sample

sampleRegular: Regular sample

sampleStratified: Stratified random sample

saveStack: Save or open a RasterStack file

scale: Scale values

scalebar: scalebar

select: Geometric subsetting

setExtent: Set the extent of a RasterLayer

setMinMax: Compute min and max values

setValues: Set values of a Raster object

shapefile: Read or write a shapefile

shift: Shift

slopeAspect: Slope and aspect

spEasy: Create SpatialLines* or SpatialPolygons*

spplot: Use spplot to plot a Raster* object

stack: Create a RasterStack object

stackApply: Apply a function on subsets of a RasterStack or RasterBrick

stackSelect: Select cell values from a multi-layer Raster* object

strech: Stretch

subset: Subset layers in a Raster* object

substitute: Substitute values in a Raster* object

summary: Summary

Summary-methods: Summary methods

symdif: Symetrical difference

terrain: Terrain characteristics

text: Add labels to a map

transpose: Transpose

trim: Trim

union: Union Extent or SpatialPolygons* objects

unique: Unique values

unstack: Unstack

update: Update raster cells of files (on disk)

validCell: Validity of a cell, column or row number

validNames: Create valid names

weighted.mean: Weighted mean of rasters

which: Which cells are TRUE?

which.minmax: Where is the min or max value?

writeFormats: File types for writing

writeRaster: Write raster data to a file

writeValues: Write values to a file

xyFromCell: Coordinates from a row, column or cell number

zApply: z (time) apply

zonal: Zonal statistics

zoom: Zoom in on a map

zvalues: Get or set z-values

Files in this package

raster
raster/inst
raster/inst/doc
raster/inst/doc/functions.pdf
raster/inst/doc/Raster.R
raster/inst/doc/rasterfile.pdf
raster/inst/doc/functions.R
raster/inst/doc/functions.Rnw
raster/inst/doc/Raster.pdf
raster/inst/doc/Raster.Rnw
raster/inst/doc/rasterfile.Rnw
raster/inst/external
raster/inst/external/test.grd
raster/inst/external/lux.dbf
raster/inst/external/lux.shx
raster/inst/external/test.gri
raster/inst/external/rlogo.gri
raster/inst/external/countries.rds
raster/inst/external/lux.prj
raster/inst/external/rlogo.grd
raster/inst/external/lux.shp
raster/inst/external/countries.csv
raster/src
raster/src/dist_util.h
raster/src/util.c
raster/src/reclass.c
raster/src/aggregate.c
raster/src/bilinear.cpp
raster/src/cellRowCol.cpp
raster/src/xyCell.cpp
raster/src/getPolygons.cpp
raster/src/distance.c
raster/src/focal_fun.c
raster/src/modal.cpp
raster/src/clamp.c
raster/src/terrain.c
raster/src/layerize.c
raster/src/focal_sum.c
raster/src/wirth.c
raster/src/focal_get.c
raster/src/intersect.c
raster/src/edge.c
raster/src/util.h
raster/src/broom.c
raster/src/dist_util.c
raster/src/pointinpoly.c
raster/src/solar.c
raster/src/geodesic.c
raster/src/aggregate_get.c
raster/src/geolib.c
raster/src/geodesic.h
raster/src/RcppExports.cpp
raster/src/direction.c
raster/src/intersect.h
raster/src/ppmin.cpp
raster/NAMESPACE
raster/R
raster/R/adjacent.R raster/R/coerce.R raster/R/select.R raster/R/persp.R raster/R/range.R raster/R/drawPoly.R raster/R/bands.R raster/R/buffer.R raster/R/kernelDens.R raster/R/plotRGB.R raster/R/plotRaster.R raster/R/reclassify.R raster/R/scale.R raster/R/clump.R raster/R/zoom.R raster/R/rowSums.R raster/R/connection.R raster/R/shift.R raster/R/geom.R raster/R/symdif.R raster/R/quantile.R raster/R/extension.R raster/R/which.R raster/R/rasterizePoints.R raster/R/plot2rasters.R raster/R/interpolate.R raster/R/cellStats.R raster/R/plotExent.R raster/R/head.R raster/R/rasterFromSurferFile.R raster/R/atan2.R raster/R/sampleRandom.R raster/R/subset.R raster/R/project.R raster/R/clearValues.R raster/R/clusterR.R raster/R/gdal.R raster/R/cellFromPolygon.R raster/R/readAscii.R raster/R/getValuesBlock.R raster/R/aggregate_3d.R raster/R/GDALtransient.R raster/R/xyValuesBuffer.R raster/R/modalRaster.R raster/R/unstack.R raster/R/extractLines.R raster/R/inifile.R raster/R/writeValues.R raster/R/values.R raster/R/cor.R raster/R/slopeAspect.R raster/R/union_sp.R raster/R/direction.R raster/R/which.max.R raster/R/as.array.R raster/R/netCDFread.R raster/R/hdr.R raster/R/dim.R raster/R/netCDFtoRasterGMT.R raster/R/imageplot2.R raster/R/cv.R raster/R/cut.R raster/R/naValue.R raster/R/coverPolygons.R raster/R/hillShade.R raster/R/plot.R raster/R/modal.R raster/R/rowMinMax.R raster/R/corLocal.R raster/R/nsidcICE.R raster/R/destair.R raster/R/math.R raster/R/rasterFromFile.R raster/R/scalebar.R raster/R/plotCT.R raster/R/resample.R raster/R/rasterizeLines.R raster/R/as.logical.R raster/R/extractPolygons.R raster/R/newPLot.R raster/R/gdalFormats.R raster/R/artith.R raster/R/writeStartStopGDAL.R raster/R/summary-methods.R raster/R/predict.R raster/R/as.matrix.R raster/R/hist.R raster/R/crop.R raster/R/aggregate_sp.R raster/R/writeAllAscii.R raster/R/freq.R raster/R/layerStats.R raster/R/hdrErdasRaw.R raster/R/Geary.R raster/R/commonDataType.R raster/R/cropSpatial.R raster/R/indexReplace.R raster/R/mosaic.R raster/R/crosstab.R raster/R/flip.R raster/R/alignExtent.R raster/R/sampleStratified.R raster/R/drivers.R raster/R/boxplot.R raster/R/hdrVRT.R raster/R/moran.R raster/R/rasterFromXYZ.R raster/R/fullFileName.R raster/R/indexReplaceBrick.R raster/R/speasy.R raster/R/rasterizePolygons3.R raster/R/show.R raster/R/distanceToEdge.R raster/R/writeAllRaster.R raster/R/bilinearValue.R raster/R/update.R raster/R/drawExtent.R raster/R/setExtent.R raster/R/rasterizePointsNGB.R raster/R/kml_multiple.R raster/R/terrain.R raster/R/rasterOptions.R raster/R/hdrWorldFile.R raster/R/ncell.R raster/R/origin.R raster/R/progressBar.R raster/R/focal.R raster/R/rotate.R raster/R/hdrBov.R raster/R/maxDataType.R raster/R/stackFile.R raster/R/tmpFile.R raster/R/dotdens.R raster/R/fixDBFnames.R raster/R/rectify.R raster/R/calc.R raster/R/stackSelect.R raster/R/rasterFromSAGA.R raster/R/fourCellsFromXY.R raster/R/tmppath.R raster/R/factor.R raster/R/RGB.R raster/R/makeRasterList.R raster/R/rasterFromIDRISI.R raster/R/xyResolution.R raster/R/union.R raster/R/minValue.R raster/R/contour.R raster/R/cellFromLine.R raster/R/dropLayer.R raster/R/weighted.mean.R raster/R/hdrSAGA.R raster/R/overlay.R raster/R/rasterFromCells.R raster/R/boundaries.R raster/R/readRasterLayer.R raster/R/rasterizePolygons.R raster/R/animate.R raster/R/netCDFreadCells.R raster/R/extractPoints.R raster/R/hdrEnvi.R raster/R/getValues.R raster/R/init.R raster/R/whiches.max.R raster/R/disaggregate.R raster/R/raster.R raster/R/bind.R raster/R/metadata.R raster/R/unique.R raster/R/RcppExports.R raster/R/index.R raster/R/writeStartStopRaster.R raster/R/click.R raster/R/quad.R raster/R/gridDistance.R raster/R/setZ.R raster/R/writeRaster.R raster/R/zonal.R raster/R/cellsFromExtent.R raster/R/print.R raster/R/addFiles.R raster/R/hdrBIL.R raster/R/extent.R raster/R/canProcessInMemory.R raster/R/density.R raster/R/dataType.R raster/R/rasterFromBIL.R raster/R/nchar.R raster/R/shp.R raster/R/as.data.frame.R raster/R/barplot.R raster/R/makeProjString.R raster/R/validCell.R raster/R/blend.R raster/R/image.R raster/R/distanceRows.R raster/R/ratify.R raster/R/colortable.R raster/R/properties.R raster/R/hdrIDRISI.R raster/R/readCells.R raster/R/layerize.R raster/R/extend.R raster/R/movingFun.R raster/R/hdrRaster.R raster/R/idwValue.R raster/R/coverBrick.R raster/R/xyMinMax.R raster/R/plotRaster2.R raster/R/addLayer.R raster/R/extractPoints_sp.R raster/R/compare_Logical.R raster/R/compareCRS.R raster/R/text.R raster/R/rasterFromRasterFile.R raster/R/trim.R raster/R/setCV.R raster/R/labels.R raster/R/roundExtent.R raster/R/netCDFtoRasterCD.R raster/R/rasterFromGDAL.R raster/R/filler.R raster/R/focalWeight.R raster/R/randomize.R raster/R/as.spatial.R raster/R/hdrPRJ.R raster/R/netCDFwriteCD.R raster/R/nlayers.R raster/R/approxNA.R raster/R/extract.R raster/R/localFun.R raster/R/cellValues.R raster/R/writeStartStop.R raster/R/extentUnion.R raster/R/projection.R raster/R/focalFun.R raster/R/names.R raster/R/distanceFromPoints.R raster/R/mask.R raster/R/summary.R raster/R/sampleInt.R raster/R/extractExtent.R raster/R/pointdistance.R raster/R/setMinMax.R raster/R/netCDFtoStack.R raster/R/bbox.R raster/R/merge.R raster/R/rasterFromASCII.R raster/R/kml.R raster/R/stack.R raster/R/stackQuick.R raster/R/stretch.R raster/R/cover.R raster/R/is.na.R raster/R/intDataType.R raster/R/stackApply.R raster/R/multiCore.R raster/R/read.R raster/R/rasterToPoints.R raster/R/frbind.R raster/R/setValues.R raster/R/dataProperties.R raster/R/compare.R raster/R/gridDistance2.R raster/R/sampleAlong.R raster/R/notused.R raster/R/projectRaster.R raster/R/transpose.R raster/R/blockSize.R raster/R/getData.R raster/R/intersect_sp.R raster/R/brick.R raster/R/readRasterBrick.R raster/R/intersect.R raster/R/replaceProperties.R raster/R/writeAllGDAL.R raster/R/AAAClasses.R raster/R/netCDFutil.R raster/R/arith_sp.R raster/R/rasterToPolygons.R raster/R/rasterize.R raster/R/simplifyPols.R raster/R/erase.R raster/R/writeStartStopAscii.R raster/R/flowpath.R raster/R/getValuesFocal.R raster/R/spplot.R raster/R/xyCell.R raster/R/zzz.R raster/R/gainoffset.R raster/R/resolution.R raster/R/match.R raster/R/distance.R raster/R/zApply.R raster/R/sampleRegular.R raster/R/subs.R raster/R/adjacency.R raster/R/cellRowCol.R raster/R/area.R raster/R/as.raster.R raster/R/mean.R raster/R/isLonLat.R raster/R/pairs.R raster/R/clamp.R raster/R/getValuesRows.R raster/R/setFileExt.R raster/R/imageplot.R
raster/vignettes
raster/vignettes/functions.Rnw
raster/vignettes/Raster.Rnw
raster/vignettes/rasterfile.Rnw
raster/MD5
raster/build
raster/build/vignette.rds
raster/DESCRIPTION
raster/ChangeLog
raster/man
raster/man/unique.Rd raster/man/persp.Rd raster/man/saveStack.Rd raster/man/disaggregate.Rd raster/man/focal.Rd raster/man/as.logical-methods.Rd raster/man/layerStats.Rd raster/man/filledContour.Rd raster/man/match.Rd raster/man/rasterToContour.Rd raster/man/shift.Rd raster/man/unstack.Rd raster/man/symdif.Rd raster/man/sampleRandom.Rd raster/man/setValues.Rd raster/man/quantile.Rd raster/man/erase.Rd raster/man/rectify.Rd raster/man/Raster-classes.Rd raster/man/clamp.Rd raster/man/cv.Rd raster/man/init.Rd raster/man/brick.Rd raster/man/scale.Rd raster/man/cellsFromExtent.Rd raster/man/rowFromCell.Rd raster/man/focalWeight.Rd raster/man/origin.Rd raster/man/strech.Rd raster/man/Arith-methods.Rd raster/man/freq.Rd raster/man/names.Rd raster/man/getValuesBlock.Rd raster/man/setMinMax.Rd raster/man/autocor.Rd raster/man/approxNA.Rd raster/man/hillShade.Rd raster/man/zonal.Rd raster/man/extent.Rd raster/man/crosstab.Rd raster/man/sampleRegular.Rd raster/man/as.data.frame.Rd raster/man/gridDistance.Rd raster/man/round.Rd raster/man/ncell.Rd raster/man/union.Rd raster/man/as.raster.Rd raster/man/RGB.Rd raster/man/datasource.Rd raster/man/barplot.Rd raster/man/animate.Rd raster/man/metadata.Rd raster/man/rasterFromCells.Rd raster/man/rasterTmpFile.Rd raster/man/Extent-class.Rd raster/man/rowSums.Rd raster/man/atan2.Rd raster/man/addLayer.Rd raster/man/colortable.Rd raster/man/Summary-methods.Rd raster/man/transpose.Rd raster/man/cluster.Rd raster/man/writeValues.Rd raster/man/update.Rd raster/man/clump.Rd raster/man/blockSize.Rd raster/man/bind.Rd raster/man/rotate.Rd raster/man/projection.Rd raster/man/corLocal.Rd raster/man/stack.Rd raster/man/distance.Rd raster/man/merge.Rd raster/man/buffer.Rd raster/man/calc.Rd raster/man/hdrFiles.Rd raster/man/aggregate.Rd raster/man/draw.Rd raster/man/shapefile.Rd raster/man/reclassify.Rd raster/man/dataType.Rd raster/man/spplot.Rd raster/man/getValues.Rd raster/man/stackSelect.Rd raster/man/predict.Rd raster/man/dimensions.Rd raster/man/interpolate.Rd raster/man/movingFun.Rd raster/man/slopeAspect.Rd raster/man/bands.Rd raster/man/pairs.Rd raster/man/localFun.Rd raster/man/resample.Rd raster/man/click.Rd raster/man/alignExtent.Rd raster/man/NAvalue.Rd raster/man/substitute.Rd raster/man/projectRaster.Rd raster/man/geom.Rd raster/man/xyFromCell.Rd raster/man/cellStats.Rd raster/man/extension.Rd raster/man/coordinates.Rd raster/man/Math-methods.Rd raster/man/validNames.Rd raster/man/resolution.Rd raster/man/cover.Rd raster/man/zoom.Rd raster/man/rasterize.Rd raster/man/compareCRS.Rd raster/man/crop.Rd raster/man/validCell.Rd raster/man/headtail.Rd raster/man/text.Rd raster/man/stackApply.Rd raster/man/boxplot.Rd raster/man/pointdistance.Rd raster/man/hist.Rd raster/man/sampleInt.Rd raster/man/compare.Rd raster/man/zvalues.Rd raster/man/as.list.Rd raster/man/rasterToPoints.Rd raster/man/raster-package.Rd raster/man/readAll.Rd raster/man/scalebar.Rd raster/man/getValuesFocal.Rd raster/man/adjacent.Rd raster/man/writeFormats.Rd raster/man/KML.Rd raster/man/nlayers.Rd raster/man/boundaries.Rd raster/man/trim.Rd raster/man/roundExtent.Rd raster/man/sampleStratified.Rd raster/man/contour.Rd raster/man/flowpath.Rd raster/man/extend.Rd raster/man/extremeValues.Rd raster/man/zApply.Rd raster/man/plotRGB.Rd raster/man/Compare-methods.Rd raster/man/cellFrom.Rd raster/man/drawExtent.Rd raster/man/mask.Rd raster/man/raster.Rd raster/man/iniFile.Rd raster/man/mosaic.Rd raster/man/rasterFromXYZ.Rd raster/man/intersect.Rd raster/man/properties.Rd raster/man/weighted.mean.Rd raster/man/factor.Rd raster/man/distanceFromPoints.Rd raster/man/image.Rd raster/man/writeRaster.Rd raster/man/setExtent.Rd raster/man/replacement.Rd raster/man/layerize.Rd raster/man/programming.Rd raster/man/as.matrix.Rd raster/man/extractIndex.Rd raster/man/spEasy.Rd raster/man/direction.Rd raster/man/modal.Rd raster/man/overlay.Rd raster/man/Logic-methods.Rd raster/man/plot.Rd raster/man/flip.Rd raster/man/which.minmax.Rd raster/man/rasterOptions.Rd raster/man/gainoffset.Rd raster/man/getData.Rd raster/man/extract.Rd raster/man/cut.Rd raster/man/subset.Rd raster/man/isLonLat.Rd raster/man/terrain.Rd raster/man/summary.Rd raster/man/density.Rd raster/man/area.Rd raster/man/rotated.Rd raster/man/select.Rd raster/man/which.Rd raster/man/filename.Rd raster/man/rasterToPolygons.Rd raster/man/clearValues.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.