map.SRDL: 'map.SRDL' makes a map of SRDL position (diag) data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/mapSRDL.R

Description

map.SRDL makes a map of SRDL position (diag) data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
map.SRDL(
  di.dat = hp4,
  type = "simple",
  theRef = "All",
  filter = "v.mask",
  include = 0,
  tail = 10,
  coverage = "All",
  ref.time = "now",
  save.file = NA
)

Arguments

di.dat

Position data to be mapped

theRef

Which animal tracks should be plotted. Default is to plot all animals, otherwise give vector of ref names

filter

Filtering to be used for mapping. Default is to use the V.MASK filter. Otherwise specify the column name containing the filter.

include

Give filter value for observation to include

tail

Specify length (in days) of recent track that should be highlighted (in colour and thick)

coverage

Should map cover all historical tracks ("All") or only tail? Only implemented for simple plot.

ref.time

Should reference time be current ("now") or last recorded time in data ("last")?

save.file

If NA, plots map in Rstudio viewer, if filename is supplied it saves an html file.

simple

Should a simple map be plotted (default) or a leaflet map (set type="leaflet")

Value

Returns a map, either as standard with coastline from worldHires in mapdata or an interactive leaflet (if type='leaflet')

Author(s)

Martin Biuw

See Also

fields.SRDLdb for table field names, ref.SRDLdb for ref ID codes, dep.SRDLdb for retrieving deployments metadata, get.SRDLdb for querying and retrieving data from database table

Other SMRU SRDL functions: qcDive(), strip.SRDL()

Examples

1
2
map.SRDLdb(hp4$diag)
map.SRDLdb(hp4$diag, type="leaflet")

embiuw/rSRDL documentation built on Jan. 27, 2021, 8:11 p.m.