plot_sl: Plot step-length distribution

Description Usage Arguments Examples

View source: R/plot_sl.R

Description

Plot step-length distribution

Usage

1
2
3
4
5
6
7
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.

Examples

1
2
3
4
5
6
7
8
9
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

amt documentation built on Jan. 18, 2021, 5:05 p.m.