map | R Documentation |
map aniMotum-estimated locations and behavioural indices with coastline and projection options
map(
x,
y = NULL,
what = c("fitted", "predicted", "rerouted"),
aes = aes_lst(),
by.id = TRUE,
by.date = FALSE,
crs = NULL,
ext.rng = c(0.05, 0.05),
buffer = 10000,
map_type = "default",
normalise = TRUE,
group = FALSE,
silent = FALSE,
...
)
x |
a |
y |
optionally, a |
what |
specify which location estimates to map: fitted, predicted or rerouted |
aes |
a list of map controls and aesthetics (shape, size, col, fill, alpha)
for each map feature (estimated locations, confidence ellipses, track lines,
observed locations, land masses, water bodies). Constructed by |
by.id |
when mapping multiple tracks, should locations be coloured by
id (logical; default = TRUE if |
by.date |
when mapping single tracks, should locations be coloured by date (logical; default = FALSE; ignored if behavioural index provided) |
crs |
|
ext.rng |
proportion (can exceed 1) to extend the plot range in x and y dimensions |
buffer |
distance (in km) to buffer locations for subsetting land
polygons (default = 10000). If map extents are expanded by many factors then
the buffer distance may need to be increased, otherwise this should not be
used. Ignored if |
map_type |
background map type ("default" uses rnaturalearth::ne_countries
to add land polygons). If the |
normalise |
logical; if output includes a move persistence estimate, should g (the move persistence index) be normalised to have minimum = 0 and maximum = 1 (default = TRUE). |
group |
logical; should g be normalised among individuals as a group, a 'relative g', or separately to highlight regions of lowest and highest move persistence along a track (default = FALSE). |
silent |
logical; generate maps silently (default = FALSE). |
... |
additional arguments passed to ggspatial::annotation_map_tile |
a map as a ggplot2 object
# create an ssm fit object
fit <- fit_ssm(ellie, model = "rw", time.step = 24, control = ssm_control(verbose = 0))
# render default map
map(fit, what = "p")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.