Learn R Programming

move (version 1.0)

raster: Extract raster from DBBMM

Description

Extracts the RasterLayer from a DBBMM and DBBMMStack object.

Usage

## S3 method for class 'DBBMM':
raster(x)
  ## S3 method for class 'DBBMMStack':
raster(x)

Arguments

x
a DBBMM or DBBMMStack object

Value

  • An object from class RasterLayer is returned.

Details

The raster function extracts the raster object from a DBBMM or DBBMMStack object.

Examples

Run this code
load(system.file("extdata", "move.RData", package="move"), .GlobalEnv)

raster(rickydbbmm) #returns the raster of a DBBMM object
raster(dbbmmstack) # returns the raster of a DBBMMStack object

plot(raster2contour(rickydbbmm, levels=c(.5,.9)), col=c(5,4)) # plot the raster lines of a DBBMM

Run the code above in your browser using DataLab