Functions to export ctmm
data formats into common sp
, raster
, and ESRI formats.
# S4 method for UD
raster(x,DF="CDF",...)SpatialPoints.telemetry(object,...)
SpatialPointsDataFrame.telemetry(object,...)
SpatialPolygonsDataFrame.UD(object,level.UD=0.95,level=0.95,...)
# S4 method for UD,character
writeRaster(x,filename,format,DF="CDF",...)
writeShapefile(object,folder,file=NULL,...)
# S3 method for telemetry
writeShapefile(object,folder,file=NULL,...)
# S3 method for UD
writeShapefile(object,folder,file=NULL,level.UD=0.95,level=0.95,...)
UD
object.
Rasterize the probability density function "PDF"
, probability mass function "PMF"
, or cumulative distribution function "CDF"
.
telemetry
or UD
object.
Confidence level of the UD area. I.e., the 50% core home range would be given by level.UD=0.50
.
Confidence level for the magnitude of the above area. I.e., the 95% CI of the core home range area.
Character name of file for raster file.
Character format, if not inferred from filename
extension (see writeRaster
.)
Character name of folder for shapefile.
Character name of files for shapefile.
Optional arguments passed to writeRaster
, writeOGR
, etc..
raster.UD
returns a raster
of the maximum likelihood (ML) distribution function DF
.
DF=PDF
gives the average probability density per cell,
DF=PMF
gives the total probability per cell,
and DF=CDF
gives the cumulative probability.
SpatialPoints.telemetry
returns a single spatialPoints
object for the x
-y
locations, with individual identity information lost.
SpatialPointsDataFrame.telemetry
returns a SpatialPointsDataFrame
with the individual identities recorded in the data frame.
SpatialPolygonsDataFrame.UD
returns a SpatialPolygonsDataFrame
of the low, ML, and high home-range area estimates, in the appropriate order for plotting.
writeRaster
writes a raster file to disk, with pixel values corresponding to the density function.
writeShapefile
writes a shapefile to disk, with UD polygons corresponding to the low, ML, and high home-range area estimates.