View source: R/plot.sim_post.R
plot.sim_post | R Documentation |
visualize tracks simulated from a aniMotum
model fit
## S3 method for class 'sim_post'
plot(
x,
type = c("lines", "points", "both"),
zoom = TRUE,
ncol = 1,
hires = TRUE,
ortho = TRUE,
alpha = 0.5,
...
)
x |
a |
type |
plots tracks as "line", "points" or "both" (default). |
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 |
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. |
alpha |
opacity of simulated track points/lines. Lower opacity can ease visualization when multiple simulated overlap one another. |
... |
additional arguments to be ignored |
Plots of posterior simulated tracks.
fit <- fit_ssm(ellie, model = "crw", time.step = 24)
psim <- sim_post(fit, what = "p", reps = 10)
plot(psim, type = "lines")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.