plotKFS: Maps for the Kitimat Fjord System

View source: R/plotkfs.R

plotKFSR Documentation

Maps for the Kitimat Fjord System

Description

Mapping functions in the Kitimat Fjord System tailored to research needs of the Bangarang, Gitga'at, and NCCS teams.

Usage

plotKFS(
  area = "Study Area",
  X = c(-129.68, -128.85),
  Y = c(52.8, 53.55),
  mar = c(4.2, 3, 0.2, 0.2),
  mai = c(0.75, 0.75, 0.1, 0.1),
  land.col = "light gray",
  shore.border = "dark gray",
  shore.lwd = 1,
  tankers = FALSE,
  tankers.width = 5,
  tankers.col = "tan1",
  places = FALSE,
  places.scale = 1,
  stat = FALSE,
  stat.col = "black",
  stat.scale = 1,
  tracks = FALSE,
  track.col = "black",
  blocking = NULL,
  block.col = "black",
  block.lwd = 1,
  block.lab.scale = FALSE
)

Arguments

area

Map range. Default is "Study Area" of the Bangarang project. Other range options:

  • "Caamano"

  • "Estevan"

  • "Campania"

  • "Squally"

  • "S. Squally" (Dougan to McDonald)

  • "N. Squally" (McDonald to Union)

  • "Whale"

  • "Wright"

  • "McKay" (includes S. Ursula up to Bishop)

  • "Verney" (includes N. Ursula down to Bishop)

  • "Gil Basin" (the channels surrounding Gil Island)

  • "Gribbell Island" (the channels surround Gribbell)

  • "Other" (custom range, entered using X and Y inputs)

X

Custom longitude range (e.g., c(-129.68,-128.85)). Only applies when "Other" is entered as area.

Y

Custom latitude range (e.g., c(52.9,53.3)). Only applies when "Other" is entered as area.

mar

Plot margins, passed to par.

mai

Margin size specific in inches, passted to par.

land.col

Land color.

shore.border

Color of shoreline border.

shore.lwd

Shoreline border thickness.

tankers

If TRUE (not default), proposed tanker route is displayed.

tankers.width

Tanker track line width.

tankers.col

Tanker track color

places

If TRUE (not default), research locations are labeled: Hartley Bay, Whale Point, GW Camp, and the Wall.

places.scale

Text size of place labels.

stat

If TRUE (not default), shows grid of 24 Bangarang stations.

stat.col

Station color.

stat.scale

Size of station dots.

tracks

If TRUE (not default), shows Bangarang survey tracklines.

track.col

Trackline color.

blocking

Controls which block stratification, if any, to show. Default is nothing. If "mini", shows a 54-block scheme. "minirect" shows the rectangles used to partition the study area into those blocks. "sub" shows a 24-block scheme, the scheme used in the HW-Wave study. "channel" shows an 8-block scheme. "province" combines those 8 channels into 4 large provinces: offshore, central outer, central inner, and inland.

block.col

Color of blocking borders.

block.lwd

Blocking border width.

block.lab.scale

Default is FALSE. If a number, it prints labels within the blocks (only for "mini" and "minirect"), scaled to the number given.

Value

Generates map.

Author(s)

Eric Keen, Scripps Institution of Oceanography, ekeen@ucsd.edu

Examples

##############################################
 # Simple plot of study area
 plotKFS()
##############################################
# Zoom in of Squally Channel
plotKFS(area="Squally")
##############################################
# Self-defined map range: Kitimat Fjord System with tanker route and study tracklines
plotKFS(area="Other",
       X=c(-129.9,-127.9),
       Y=c(52.5,54.05),
       tankers=TRUE,
       tankers.col=adjustcolor("firebrick",alpha.f=.4),
       tracks=TRUE)
##############################################
# Research headquarters
plotKFS(places=TRUE,places.scale=1.5)
##############################################
# 2015 Bangarang sampling plan
plotKFS(stat=TRUE,stat.scale=1.5,tracks=TRUE)
##############################################
# Examples of study area blocking for various analyses
plotKFS(blocking="minirect",block.lab.scale=1.5) # 54 mini blocks -- never used in analysis
plotKFS(blocking="mini") # Shoreline within those 54 miniblocks
plotKFS(blocking="sub") # Each waterway split into 3 subblocks
plotKFS(blocking="channel") # The 8 main waterways of Bangarang analyses
plotKFS(blocking="province") # Four main provinces

ericmkeen/bangarang documentation built on Feb. 10, 2024, 2:58 p.m.