Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot_sl

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.

Examples

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

Animal Movement Tools

v0.1.4
GPL-3
Authors
Johannes Signer [aut, cre], Brian Smith [ctb], Bjoern Reineking [ctb], Ulrike Schlaegel [ctb], John Fieberg [ctb], Scott LaPoint [dtc]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.