Functions to export ctmm data formats into common sp, sf, raster, and ESRI formats.

as.sf(x,error=FALSE,...)

SpatialPoints.telemetry(object,...)

SpatialPointsDataFrame.telemetry(object,...)

SpatialPolygonsDataFrame.telemetry(object,level.UD=0.95,...)

SpatialPolygonsDataFrame.UD(object,level.UD=0.95,level=0.95,...)

# S4 method for UD
raster(x,DF="CDF",...)

writeShapefile(object,folder,file=NULL,...)

# S3 method for telemetry
writeShapefile(object,folder,file=NULL,error=TRUE,level.UD=0.95,...)

# S3 method for UD
writeShapefile(object,folder,file=NULL,level.UD=0.95,level=0.95,...)

# S4 method for UD,character
writeRaster(x,filename,format,DF="CDF",...)

Arguments

x

telemetry or UD object.

error

Export telemetry location error circles/ellipses as polygons if TRUE.

object

telemetry or UD object.

level.UD

Coverage level of the UD area. I.e., the 50% core home range would be given by level.UD=0.50.

level

Confidence level for the magnitude of the above area. I.e., the 95% CI of the core home range area.

DF

Rasterize the probability density function "PDF", probability mass function "PMF", or cumulative distribution function "CDF".

folder

Character name of folder for shapefile.

file

Character name of files for shapefile.

filename

Character name of file for raster file.

format

Character format, if not inferred from filename extension (see writeRaster).

...

Optional arguments passed to writeRaster, writeOGR, etc..

Details

as.sf exports ctmm objects to the sf format. Arguments to ctmm Spatial* export functions can also be used, such as level.UD and level.

Spatial* functions export ctmm objects to sp formats.

raster exports UD object point-estimates distribution functions (DF) to raster objects. DF="PDF" gives the average probability density per cell, DF="PMF" gives the total probability per cell, and DF="CDF" gives the cumulative probability.

writeShapefile writes a shapefile to disk, with UD polygons corresponding to the low-CI, point-estimate, and high-CI home-range area estimates.

writeRaster writes a raster file to disk, with pixel values corresponding to the distribution function DF.

Value

as.sf returns an sf object for the input points or polygons, with individual identity and other information retained.

SpatialPoints.telemetry returns a single spatialPoints object for the x-y locations, without individual identity and other information retained.

SpatialPointsDataFrame.telemetry returns a SpatialPointsDataFrame with the individual identities and other data recorded in the data frame retained.

SpatialPolygonsDataFrame.telemetry returns a SpatialPolygonsDataFrame that encodes the location estimate's error circles/ellipses.

SpatialPolygonsDataFrame.UD returns a SpatialPolygonsDataFrame of the low-CI, point-estimate, and high-CI home-range area estimates, in the appropriate order for plotting.

raster returns a raster of the point-estimate distribution function DF, given a UD object.

Author

C. H. Fleming and K. Safi.

See also