outcome_map: Plot map of outcomes

View source: R/outcome_map.R

outcome_mapR Documentation

Plot map of outcomes

Description

This function produces a map of a risk metric. The default is to show cooccurrences for all month-diel-vessels.

Usage

outcome_map(
  outcomes_grid,
  base_map = NULL,
  varplot = "cooccurrence",
  varfacet = NULL,
  spp = NULL,
  years = NULL,
  channels = NULL,
  vessels = NULL,
  months = NULL,
  diels = NULL,
  col_min = "white",
  col_max = "darkorange4"
)

Arguments

outcomes_grid

The outcomes_grid output from outcome_predict().

base_map

Base map, provided as a ggplot2 object. The default is to use bangarang::gg_kfs() of the Kitimat Fjord System (BC, Canada).

varplot

The variable to plot. See output of outcome_predict().

varfacet

The variable by which to facet, if any.

spp

Species to filter by.

years

Year to filter by.

channels

channel to filter by.

vessels

vessels to filter by.

months

months (numerics) to filter by.

diels

Diel period "night" or "day").

col_min

Specify minimum color of color gradient scale.

col_max

Specify maximum color of color gradient scale.

Value

A ggplot object.


ericmkeen/shipstrike documentation built on May 21, 2023, 7:05 a.m.