Skip to contents

Plot the speed kernel and residence-dependent probability of movement for a sampling_path() movement specification.

Usage

plot_movement(movement, speed = seq(0, 120), stay_duration = seq(0, 20))

Arguments

movement

movement list passed to sampling_path().

speed

speed values in km/h used to evaluate the movement kernel.

stay_duration

residence durations in days used to evaluate movement$move_stay.

Value

A patchwork plot with speed and move/stay panels. When movement$move_stay_parameters contains p_0, p_inf, and tau, the move/stay panel marks those parameters for the exponential-decay-to-plateau model.

See also

Examples

movement <- list(
  method = "gamma",
  shape = 1.412246,
  scale = 8.909248,
  low_speed_fix = 0.001,
  zero_speed_ratio = 0,
  move_stay_parameters = list(
    p_0 = 0.647893,
    p_inf = 0.1318134,
    tau = 0.8624705
  ),
  move_stay = function(t) 0.1318134 +
    (0.647893 - 0.1318134) * exp(-t / 0.8624705)
)
plot_movement(movement)
#> Registered S3 method overwritten by 'GeoPressureR':
#>   method    from   
#>   print.tag pkgdown