Package: amt 0.3.0.0

Johannes Signer

amt: Animal Movement Tools

Manage and analyze animal movement data. The functionality of 'amt' includes methods to calculate home ranges, track statistics (e.g. step lengths, speed, or turning angles), prepare data for fitting habitat selection analyses, and simulation of space-use from fitted step-selection functions.

Authors:Johannes Signer [aut, cre], Brian Smith [ctb], Bjoern Reineking [ctb], Ulrike Schlaegel [ctb], John Fieberg [ctb], Josh O'Brien [ctb], Bernardo Niebuhr [ctb], Alec Robitaille [ctb], Tal Avgar [ctb], Scott LaPoint [dtc]

amt_0.3.0.0.tar.gz
amt_0.3.0.0.zip(r-4.5)amt_0.3.0.0.zip(r-4.4)amt_0.3.0.0.zip(r-4.3)
amt_0.3.0.0.tgz(r-4.4-any)amt_0.3.0.0.tgz(r-4.3-any)
amt_0.3.0.0.tar.gz(r-4.5-noble)amt_0.3.0.0.tar.gz(r-4.4-noble)
amt_0.3.0.0.tgz(r-4.4-emscripten)amt_0.3.0.0.tgz(r-4.3-emscripten)
amt.pdf |amt.html
amt/json (API)
NEWS

# Install 'amt' in R:
install.packages('amt', repos = c('https://jmsigner.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/jmsigner/amt/issues

Datasets:
  • amt_fisher - GPS tracks from four fishers
  • amt_fisher_covar - Environmental data for fishers
  • deer - Relocations of 1 red deer
  • sh - Relocations of one Red Deer
  • sh_forest - Forest cover
  • uhc_hab - Simulated habitat rasters for demonstrating UHC plots
  • uhc_hsf_locs - Simulated HSF location data for demonstrating UHC plots
  • uhc_issf_locs - Simulated iSSF location data for demonstrating UHC plots

On CRAN:

10.57 score 37 stars 408 scripts 1.4k downloads 12 mentions 157 exports 74 dependencies

Last updated 9 hours agofrom:b86ce79724. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 13 2024
R-4.5-winOKNov 13 2024
R-4.5-linuxOKNov 13 2024
R-4.4-winOKNov 13 2024
R-4.4-macOKNov 13 2024
R-4.3-winOKNov 13 2024
R-4.3-macOKNov 13 2024

Exports:add_nsdarrangeas_degreeas_ltrajas_moveHMMas_radas_sfas_sf_linesas_sf_pointsas_spas_telemetryas_trackavailable_distrbboxcalculate_sdrcentroidclogitconf_envelopecoordscum_distdaysdiff_xdiff_ydirection_absdirection_reldistinctextent_bothextent_maxextent_xextent_yextract_covariatesextract_covariates_alongextract_covariates_var_timefilterfilter_min_n_burstfit_clogitfit_ctmmfit_distrfit_issffit_logitfit_rsffit_ssfflag_defunct_clustersflag_duplicatesflag_fast_stepsflag_roundtripsfromfrom_toget_amt_fisher_covarsget_crsget_displacementget_max_distget_sh_forestgroup_byhas_crshourshr_akdehr_areahr_cudhr_isoplethshr_kdehr_kde_lscvhr_kde_pihr_kde_refhr_kde_ref_scaledhr_locohhr_mcphr_odhr_overlaphr_overlap_featurehr_to_sfhr_udinspectintensity_uselog_rssmake_distributionmake_exp_distrmake_gamma_distrmake_hnorm_distrmake_issf_modelmake_lnorm_distrmake_startmake_trackmake_trastmake_unif_distrmake_vonmises_distrmapmap_intminutesmk_trackmsdmutateNA_crs_nestnsdodplot_slprep_uhcpullrandom_numbersrandom_pointsrandom_stepsrandom_steps_simplerange_bothrange_xrange_yredistribution_kernelremove_capture_effectremove_incomplete_stratarolling_odsampling_periodsdrsecondsselectsimulate_pathsinuositysite_fidelitysl_distrsl_distr_namesl_distr_paramsspeedssf_formulastep_lengthsstepssteps_by_burststraightnessstratasummarisesummarizesummarize_sampling_ratesummarize_sampling_rate_manysummarize_slsummarize_speedSurvta_distrta_distr_nameta_distr_paramstactibbletime_of_daytotot_disttracktrack_aligntrack_resampletracked_from_totransform_coordsungroupunnestupdate_expupdate_gammaupdate_hnormupdate_lnormupdate_sl_distrupdate_ta_distrupdate_vonmisesweeks

Dependencies:backportsBesselbootcheckmatecircularclassclassIntclicpp11ctmmdata.tableDBIDEoptimRdigestdplyre1071expmfansifasttimefitdistrplusFNNgenericsgeometriesglueGmediangmpgslKernSmoothlatticelifecyclelubridatemagrittrmanipulateMASSMatrixmvtnormnumDerivparsedatepbivnormpillarpkgconfigpracmaproxypurrrR6rasterrbibutilsRcppRcppArmadilloRcppEigenRdpackrlangRmpfrrobustbaseRSpectras2sfsfheadersshapespstatmodstringistringrsurvivalterratibbletidyrtidyselecttimechangeunitsutf8vctrswithrwk

Calculating home-range overlaps with amt

Rendered fromp2_hr.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2023-03-02
Started: 2021-01-05

Fitting Step-Selection Functions with amt

Rendered fromp4_SSF.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2023-03-02
Started: 2017-08-16

Getting started with amt

Rendered fromp1_getting_started.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2023-03-02
Started: 2017-08-16

Interface to other packages with amt

Rendered fromp5_other_packages.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2023-07-03
Started: 2020-03-20

Resource Selection Functions (RSF) with amt

Rendered fromp3_rsf.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2023-03-02
Started: 2020-03-20

UHC Plots

Rendered fromp6_uhc_plots.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-11-13
Started: 2022-05-24

Readme and manuals

Help Manual

Help pageTopics
GPS tracks from four fishersamt_fisher
Environmental data for fishersamt_fisher_covar
Export track to linesas_sf_lines
Coerces a track to pointsas_sf_points as_sf_points.steps_xy
Coerce to trackas_track as_track.data.frame as_track.sfc_POINT as_track.steps_xyt
Coerce a 'uhc_data' object to 'data.frame'as.data.frame.uhc_data
Display available distributions for step lengths and turn angles.available_distr
'hr_kde_pi' wraps 'KernSmooth::dpik' to select bandwidth for kernel density estimation the plug-in-the-equation method in two dimensions.bandwidth_pi hr_kde_pi hr_kde_pi.track_xy
Reference bandwidthbandwidth_ref hr_kde_ref hr_kde_ref.track_xy
Get bounding box of a track.bbox bbox.steps_xy bbox.track_xy
Calculate 'w(x)'calc_w
Calculate SDRcalculate_sdr
Calculate the centroid of a track.centroid centroid.track_xy
Calculate Speedcheck_time_unit
Coerce a track to other formats.as_ltraj as_ltraj.track_xy as_ltraj.track_xyt as_moveHMM as_moveHMM.track_xy as_sf as_sf.steps_xy as_sp as_telemetry as_telemetry.track_xyt coercion
Create confidence envelopes from a 'uhc_data_frame'conf_envelope
Converts angles to radiansas_degree as_rad convert_angles
Coordinates of a track.coords
Calculate a cumulative UDcum_ud hr_cud hr_cud.SpatRaster
Relocations of 1 red deerdeer
Difference in x and ydiff diff_x diff_y
Name of step-length distribution and turn-angle distributiondistr_name sl_distr_name sl_distr_name.fit_clogit sl_distr_name.random_steps ta_distr_name ta_distr_name.fit_clogit ta_distr_name.random_steps
Functions create statistical distributionsdistributions make_distribution make_exp_distr make_gamma_distr make_hnorm_distr make_lnorm_distr make_unif_distr make_vonmises_distr
Extent of a trackextent extent_both extent_max extent_x extent_y
Extract covariate valuesextract_covariates extract_covariates.random_points extract_covariates.steps_xy extract_covariates.track_xy extract_covariates_along extract_covariates_along.steps_xy extract_covariates_var_time extract_covariates_var_time.steps_xyt extract_covariates_var_time.track_xyt
Subset a 'uhc_data' objectExtract.uhc_data [.uhc_data
Filter bursts by number of relocationsfilter_min_n_burst filter_min_n_burst.track_xy
Fit a conditional logistic regressionfit_clogit fit_issf fit_ssf
Fit a continuous time movement model with 'ctmm'fit_ctmm
Fit distribution to datafit_distr
Fit logistic regressionfit_logit fit_rsf
Flag Defunct Clustersflag_defunct_clusters flag_defunct_clusters.track_xyt
Flag Low Quality Duplicatesflag_duplicates flag_duplicates.track_xyt
Flag Fast Stepsflag_fast_steps flag_fast_steps.track_xyt
Flag Fast Round Tripsflag_roundtrips flag_roundtrips.track_xyt
Duration of tracksfrom from.track_xyt from_to from_to.track_xyt to to.track_xyt
Helper function to get fisher covarsget_amt_fisher_covars
Obtains the Coordinate Reference Systemsget_crs
Calculate Expected Displacementget_displacement
Obtain the step length and/or turn angle distributions from random steps or a fitted model.get_distr sl_distr sl_distr.fit_clogit sl_distr.random_steps ta_distr ta_distr.fit_clogit ta_distr.random_steps
Get the maximum distanceget_max_dist get_max_dist.fit_clogit
Helper function to get forest coverget_sh_forest
Check for Coordinate Reference Systems (CRS)has_crs
Home rangeshrest hr_akde hr_akde.track_xyt hr_kde hr_kde.track_xy hr_locoh hr_locoh.track_xy hr_mcp hr_od
Home-range areahr_area hr_area.akde hr_area.hr hr_area.SpatRaster
Home-range isoplethshr_isopleths hr_isopleths.akde hr_isopleths.hr_prob hr_isopleths.locoh hr_isopleths.mcp hr_isopleths.PackedSpatRaster hr_isopleths.SpatRaster
Least square cross validation bandwidthhr_kde_lscv
Select a bandwidth for Kernel Density Estimationhr_kde_ref_scaled
Calculate the overlap between a home-range estimate and a polygonhr_overlap_feature
Methods to calculate home-range overlapshr_overlap hr_overlap.hr hr_overlap.list hr_overlaps
Convert home ranges to 'sfc'hr_to_sf hr_to_sf.tbl_df
Obtain the utilization distribution of a probabilistic home-range estimatehr_ud
Inspect a trackinspect inspect.track_xy
Create formula without stratum from iSSFissf_drop_stratum
Create habitat formula from iSSFissf_w_form
Calculate log-RSS for a fitted modellog_rss log_rss.fit_clogit log_rss.glm
Create an 'issf'-model object from scratchmake_issf_model
Create an initial step for simulationsmake_start make_start.numeric make_start.steps_xyt make_start.track_xyt
Movement metricscum_dist intensity_use movement_metrics msd sinuosity straightness tac tot_dist
Net squared displacement (nsd)add_nsd add_nsd.steps_xy add_nsd.track_xy nsd nsd.track_xy
Occurrence Distributionod od.track_xyt rolling_od rolling_od.track_xyt
Get parameters from a (fitted) distributionparams sl_distr_params sl_distr_params.fit_clogit sl_distr_params.random_steps ta_distr_params ta_distr_params.fit_clogit ta_distr_params.random_steps
Plot step-length distributionplot_sl plot_sl.fit_clogit plot_sl.random_steps
Plot a home-range estimateplot.hr
Plot a 'log_rss' objectplot.log_rss
Plot UHC plotsplot.uhc_data
Plot simplified UHC plotsplot.uhc_envelopes
Prepare Data for UHC Plots for a Fitted Modelprep_uhc prep_uhc.fit_clogit prep_uhc.fit_logit prep_uhc.glm
Sample random numbersrandom_numbers
Generate random pointsrandom_points random_points.hr random_points.sf random_points.track_xy
Generate Random Stepsrandom_steps random_steps.bursted_steps_xyt random_steps.numeric random_steps.steps_xy
Simulate from an ssf modelrandom_steps_simple
Geographic rangerange range_both range_both.track_xy range_x range_x.track_xy range_y range_y.track_xy
Create a redistribution kernelredistribution_kernel
Removes Capture Effectsremove_capture remove_capture_effect remove_capture_effect.track_xyt
Remove strata with missing values for observed stepsremove_incomplete_strata remove_incomplete_strata.random_steps
Extract sampling periodsampling_period
Calculate SDR for an Objectsdr sdr.track_xyt
Relocations of one Red Deersh
Forest coversh_forest
Simulate a movement trajectory.simulate_path simulate_path.default simulate_path.redistribution_kernel
Test for site fidelity of animal movement.site_fidelity site_fidelity.steps_xy
Speedspeed speed.track_xyt
Takes a 'clogit' formula and returns a formula without the 'strata' and the left-hand sidessf_formula
Given a fitted ssf, and new location the weights for each location is calculatedssf_weights
Functions to create and work with stepsdirection_abs direction_abs.track_xy direction_rel direction_rel.track_xy steps steps.track_xy steps.track_xyt steps_by_burst steps_by_burst.track_xyt step_lengths step_lengths.track_xy
Returns a summary of sampling ratessummarize_sampling_rate summarize_sampling_rate.track_xyt summarize_sampling_rate_many summarize_sampling_rate_many.track_xyt
Summarize step lengthssummarize_sl
Summarize speedsummarize_speed
Time of the day when a fix was takentime_of_day time_of_day.steps_xyt time_of_day.track_xyt
Create a track_*make_track mk_track track
Selects relocations that fit a new time seriestrack_align track_align.track_xyt
Resample tracktrack_resample track_resample.track_xyt
Subset to tracking datestracked_from_to
Transform CRStransform_coords transform_coords.track_xy transform_crs
Create a template raster layermake_trast make_trast.track_xy trast
Summarize distribution of used and availableua_distr
Simulated habitat rasters for demonstrating UHC plotsuhc_hab
Simulated HSF location data for demonstrating UHC plotsuhc_hsf_locs
Simulated iSSF location data for demonstrating UHC plotsuhc_issf_locs
Manually update 'amt_distr'update_distr_man update_exp update_gamma update_hnorm update_lnorm update_vonmises
Update movement distributionsupdate_sl_distr update_ta_distr