raster v2.9-5


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

Vignettes of raster

No Results!

Last month downloads


Include our badge in your README