plot_sl: Plot step-length distribution

View source: R/plot_sl.R

plot_slR Documentation

Plot step-length distribution

Description

Plot step-length distribution

Usage

plot_sl(x, ...)

## S3 method for class 'fit_clogit'
plot_sl(x, n = 1000, upper_quantile = 0.99, plot = TRUE, ...)

## S3 method for class 'random_steps'
plot_sl(x, n = 1000, upper_quantile = 0.99, plot = TRUE, ...)

Arguments

x

⁠[fit_clogit|random_steps]⁠
A fitted step selection or random steps.

...

Further arguments, none implemented.

n

⁠[numeric(1)=1000]{>0}⁠
The number of breaks between 0 and upper_quantile.

upper_quantile

⁠[nummeric(1)=0.99]{0-1}⁠
The quantile until where the distribution should be plotted. Typically this will be 0.95 or 0.99.

plot

⁠[logical(1)=TRUE]⁠
Indicates if a plot should be drawn or not.

Value

A plot of the step-length distribution.

Examples

data(deer)

# with random steps
deer[1:100, ] |> steps_by_burst() |> random_steps() |> plot_sl()
deer[1:100, ] |> steps_by_burst() |> random_steps() |> plot_sl(upper_quantile = 0.5)


amt documentation built on June 25, 2024, 1:14 a.m.