raster v2.8-4


Monthly downloads



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.

Functions in raster

Name Description
NAvalue Set the NA value of a RasterLayer
RGB Create a Red-Green-Blue Raster object
alignExtent Align an extent (object of class Extent)
animate Animate layers of a Raster* object
as.matrix Get a vector, matrix, or array with raster cell values
as.raster Coerce to a 'raster' object
clamp Clamp values
clearValues Clear values
cluster Use a multi-core cluster
colortable colortable
extract Extract values from Raster objects
focal Focal values
Extract by index Indexing to extract values of a Raster* object
focalWeight Focal weights matrix
getValuesFocal Get focal raster cell values
gridDistance Distance on a grid
Extent-class Class "Extent"
Logic-methods Logical operators and functions
Math-methods Mathematical functions
calc Calculate
Raster-class Raster* classes
cellFrom Get cell, row, or column number
compareRaster Compare Raster objects
layerStats Correlation and (weighted) covariance
KML Write a KML or KMZ file
Summary-methods Summary methods
addLayer Add or drop a layer
compareCRS Partially compare two CRS objects
rotate Rotate
layerize Layerize
modal modal value
metadata Metadata
Rcpp-class Rcpp classes
cut Convert values to classes
approxNA Estimate values for cell values that are NA by interpolating between layers
area Size of cells
cv Coefficient of variation
stackSave Save or open a RasterStack file
rotated Do the raster cells have a rotation?
bind Bind Spatial* objects
extension Filename extensions
extent Extent
freq Frequency table
Gain and offset Gain and offset of values on file
hillShade Hill shading
scale Scale values
blockSize Block size for writing files
bands Number of bands
shift Shift
hist Histogram
cellStats Statistics across cells
barplot Bar plot of a RasterLayer
Slope and aspect Slope and aspect
corLocal Local correlation coefficient
intersect Intersect
Arith-methods Arithmetic with Raster* objects
isLonLat Is this longitude/latitude data?
Compare-methods Compare Raster* objects
as.character Character representation of a Raster or Extent object
adjacent Adjacent cells
as.data.frame Get a data.frame with raster cell values, or coerce SpatialPolygons, Lines, or Points to a data.frame
aggregate Aggregate raster cells or SpatialPolygons/Lines
nlayers Number of layers
origin Origin
cover Replace NA values with values of other layers
projectRaster Project a Raster object
atan2 Two argument arc-tangent
cellsFromExtent Cells from extent, and vice versa
autocorrelation Spatial autocorrelation
density Density plot
dim Dimensions of a Raster* object
as.list Create a list of RasterLayer objects
as.logical Change cell values to logical or integer values
erase Erase parts of a SpatialPolygons* or SpatialLines* object. The inverse of this can be done with intersect
projection Get or set a coordinate reference system (projection)
contour Contour plot
Extreme coordinates Coordinates of the Extent of a Raster object
extend Extend
boundaries boundaries (edges) detection
brick Create a RasterBrick object
flip Flip
subset Subset layers in a Raster* object
raster-package Overview of the functions in the raster package
direction Direction
buffer buffer
substitute Substitute values in a Raster* object
flowPath Flow path
image Image
inifile Read a .ini file
disaggregate Disaggregate
raster Create a RasterLayer object
crop Crop
names Names of raster layers
round Integer values
Extent math round Extent coordinates
scalebar scalebar
select Geometric subsetting
boxplot Box plot of Raster objects
stack Create a RasterStack object
ncell Number or rows, columns, and cells of a Raster* object
click Query by clicking on a map
clump Detect clumps
union Union Extent or SpatialPolygons* objects
filename Filename
drawExtent Create an Extent object by drawing on a map
draw Draw a line or polygon
predict Spatial model predictions
filledContour Filled contour plot
unique Unique values
crosstab Cross-tabulate
Programming Helper functions for programming
Options Global options for the raster package
z-values Get or set z-values
dataType Data type
extremeValues Minimum and maximum values
hdr Header files
factors Factors
datasource Are values in memory and/or on disk?
distance Distance
distanceFromPoints Distance from points
head Show the head or tail of a Raster* object
match Value matching for Raster* objects
geom Get the coordinates of a vector type Spatial* object
rasterTmpFile Temporary files
merge Merge Raster* objects
stackApply Apply a function on subsets of a RasterStack or RasterBrick
transpose Transpose
plotRGB Red-Green-Blue plot of a multi-layered Raster object
trim Trim
getData Get geographic data
xyFromCell Coordinates from a row, column or cell number
rectify rectify a Raster object
zApply z (time) apply
getValues Get raster cell values
replacement Replace cell values or layers of a Raster* object
rasterFromCells Subset a raster by cell numbers
pointDistance Distance between points
localFun Local functions
sp Create SpatialLines* or SpatialPolygons*
mask Mask values in a Raster object
persp Perspective plot
rasterFromXYZ Create a Raster* object from x, y, z values
plot Plot a Raster* object
resample Resample a Raster object
spplot Use spplot to plot a Raster* object
properties Raster file properties
quantile Raster quantiles
getValuesBlock Get a block of raster cell values
resolution Resolution
rasterToPolygons Raster to polygons conversion
rowFromCell Row or column number from a cell number
stackSelect Select cell values from a multi-layer Raster* object
rasterize Rasterize points, lines, or polygons
initialize Intitialize a Raster object with values
rowSums rowSums and colSums for Raster objects
mosaic Merge Raster* objects using a function for overlapping areas
interpolate Interpolate
movingFun Moving functions
overlay Overlay Raster objects
Summary Summary
symdif Symetrical difference
which.min Where is the min or max value?
sampleRegular Regular sample
sampleStratified Stratified random sample
writeFormats File types for writing
setValues Set values of a Raster object
validCell Validity of a cell, column or row number
shapefile Read or write a shapefile
pairs Pairs plot (matrix of scatterplots)
stretch Stretch
weighted.mean Weighted mean of rasters
which Which cells are TRUE?
validNames Create valid names
rasterToContour Raster to contour lines conversion
rasterToPoints Raster to points conversion
readAll Read values from disk
reclassify Reclassify
writeRaster Write raster data to a file
writeValues Write values to a file
SampleInt Sample integer values
sampleRandom Random sample
setExtent Set the extent of a RasterLayer
unstack Unstack
terrain Terrain characteristics
zoom Zoom in on a map
zonal Zonal statistics
update Update raster cells of files (on disk)
text Add labels to a map
setMinMax Compute min and max values
No Results!

Vignettes of raster

No Results!

Last month downloads


Include our badge in your README