Description Usage Arguments Value Examples
View source: R/main_function.R
Creates 4 maps with : number of visit in a given radius, total time spent, mean and median time per visit.
1 2 3 4 5 |
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 |
a named list of raster object
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.