plot.sim_fit: plot

View source: R/plot.sim_fit.R

plot.sim_fitR Documentation

plot

Description

visualize tracks simulated from a aniMotum model fit

Usage

## S3 method for class 'sim_fit'
plot(x, type = NULL, zoom = TRUE, ncol = 1, hires = FALSE, ortho = TRUE, ...)

Arguments

x

a aniMotum simulation data.frame with class sim_fit

type

deprecated. All tracks are rendered as points.

zoom

logical; should map extent be defined by track extent (TRUE; default) or should global map be drawn (FALSE).

ncol

number of columns to arrange multiple plots

hires

logical; use high-resolution coastline data. Attempts to use high-res coastline data via rnaturalearth::ne_countries with scale = 10, if the rnaturalearthhires data package is installed. This extends the plot rendering time so is set to FALSE by default, in which case rnaturalearth::ne_countries with scale = 50 data are used.

ortho

logical; use an orthographic projection centered on the track starting location(s) (TRUE; default). An orthographic projection may be optimal for high latitude tracks and/or tracks that traverse long distances. If FALSE then a global Mercator projection is used.

...

additional arguments to be ignored

Value

Plots of simulated tracks.

Examples

fit <- fit_ssm(ellie, model = "crw", time.step = 24)
trs <- sim_fit(fit, what = "p", reps = 2)
plot(trs)


ianjonsen/foieGras documentation built on Jan. 17, 2025, 11:15 p.m.