Learn R Programming

amt (version 0.1.2)

plot_sl: Plot step-length distribution

Description

Plot step-length distribution

Usage

plot_sl(x, ...)

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

# S3 method for 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.

Examples

Run this code
# NOT RUN {
data(deer)

# with random steps
deer %>% steps_by_burst %>% random_steps %>% plot_sl
deer %>% steps_by_burst %>% random_steps %>% plot_sl(upper_quantile = 0.5)

# with fitted ssf
deer %>% steps_by_burst %>% random_steps %>%
  fit_ssf(case_ ~ sl_ + strata(step_id_)) %>% plot_sl

# }

Run the code above in your browser using DataLab