map_residence: Calculate number of visit and residence time for movement...

Description Usage Arguments Value Examples

View source: R/main_function.R

Description

Creates 4 maps with : number of visit in a given radius, total time spent, mean and median time per visit.

Usage

1
2
3
4
5
map_residence(df, radius = NULL, time_out = NULL, basename = NULL,
  driver = "GeoTIFF", coord.names = c("x", "y"), timecol = "dateTime",
  grid = NULL,
  proj4string = "+proj=utm +zone=35 +south +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0",
  cellsize = NULL, progress = T)

Arguments

df

movement data

radius

for finding residence event

time_out

maximum time (in s) individuals are allowed to leave the circle without considering a new visit.

basename

rasters will be saved as basename_nvisit.tif,basename_totRT.tif,basename_meanRT.tif,basename_medianRT.tif

driver

for rasters

coord.names

coordinate names in df data.frame. default x,y

timecol

name of time column in df data.frame

grid

if you want to provide a raster for calculations.

proj4string

projection string. Default UTM35S.

cellsize

if you dont provide any grid argument, size for the cell used for calculations. Else, will generate a grid with 50 cells for the highest dimension.

progress

(boolean) should the function display a progress bar

Value

a named list of raster object

Examples

1
2
3
4
map_residence(df, radius = 500, maxtime = 2, time_out = 1, basename = "file",
coord.names = c("x","y"), timecol = "dateTime",units ="hour", proj4string =
"+proj=utm +zone=35 +south +datum=WGS84 +units=m +no_defs +ellps=WGS84
+towgs84=0,0,0",cellsize = 250, progress = T)

rpatin/mapvisit documentation built on May 14, 2019, 9 a.m.