map_coas: Map Centers of Activity

Description Usage Arguments Details See Also

View source: R/s3_coas.R

Description

Plots a map using map_dets() and adds the COAs returned by coa_locs() to the map.

Usage

1
2
map_coas(proc_det, coas, coa_palette = viridis::viridis,
coa_leg_pos = "bottomleft", det_leg_pos = NA, set_par = TRUE, ...)

Arguments

coas

The data.frame of centers of activiy (COAs) created by coa_locs().

proc_det

The data.frame of processed detections used by coa_locs() to create the COAs. Defaults to integer 4326, indicating EPSG code 4326 for WGS 84 lat/long.

coa_palette

A function name that will generate a palette for each of the individuals tracked. Can be any function that will accept n as an argument.

coa_leg_pos

Indicates where the COA legend should be (showing the symbol for each individual animal). Can be any x that the base graphics function legend will accept. Defaults to the text string "bottomleft".

det_leg_pos

Indicates where the default legend for the station detections should be. Passed to map_dets() to control that legend placement. Can be any x that the base graphics function legend will accept. Defaults to NA which prevents that legend from being drawn. Can be changed to a location != coa_leg_pos.

set_par

TRUE or FALSE. Should the function change the graphical parameters or not? This should be FALSE if the user wishes to manually set the graphical parameters, e.g., so that they can still add to the plot manually after it is generated.

use_ggplot

TRUE or FALSE. Should the plot be made using ggplot2? Defaults to FALSE and uses base R plotting.

...

Additional arguments to be passed to map_dets, e.g., base.layers, xlim, ylim, etc.

Details

Calls map_dets() to draw the basemap and then adds the COAs on top.

See Also

map_dets


bsmity13/ADePTR documentation built on Nov. 9, 2019, 12:43 a.m.