mapDetections: Create a Map Showing Numbers of Detections

Description Usage Arguments Author(s)

View source: R/mapDetections.R

Description

Return a ggmap object showing the number of detections at each sonobuoy station. Can show maps for all detections, or broken up by species.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
mapDetections(
  detectionData,
  species = "all",
  combine = TRUE,
  value = "NumDetections",
  map = NULL,
  size = 3,
  ncol = 3,
  palette = "Reds",
  nGroups = 6,
  grouping = "station"
)

Arguments

detectionData

a dataframe with data on detections. Must have columns Latitude, Longitude, Station, and Count. Must also have column Species unless bySpecies is 'none'

species

The species to look at. Either a vector of specific species, or 'all' to use all species.

combine

Should the counts for the selected species be combined. If FALSE, graph will be faceted for each species.

value

column name of values to plot

map

Optional, a ggmap object to plot on. If left as NULL, will be created by the getMap function. Can be included to reduce calls to getMap.

size

Size of points to be plotted

ncol

number of columns when plotting multiple species

palette

color palette to be used, see brewer.pal for more info

nGroups

the number of different groups to use for coloring. Groups will be evenly spaced between 0 and max number of detections.

grouping

The level to group count data by. Default is Station, can be set to c('Station', 'Buoy') to group at buoy level.

Author(s)

Taiki Sakai taiki.sakai@noaa.gov


EricArcher/PAMsbuoy documentation built on March 3, 2021, 5:56 a.m.