plot_overview_map: Create a map of the west coast of North America showing...

View source: R/plot-overview-map.R

plot_overview_mapR Documentation

Create a map of the west coast of North America showing places of interest

Description

Create a map of the west coast of North America showing places of interest

Usage

plot_overview_map(
  crs_ll = 4326,
  x_lim = c(-137, -110),
  y_lim = c(29, 58),
  label_size = 4,
  label_color_default = "white",
  label_fill_default = "white",
  label_border_size = NA,
  arrowhead_size = 0.01,
  point_size = 2,
  point_color = "red",
  ...
)

Arguments

crs_ll

Coordinate Reference System (CRS) number. Default is 4326 which is WGS84: See Epsg.org for details. Click ⁠Text search⁠ tab and look at the code column for valid crs numbers

x_lim

The length-2 vector representing the minimum and maximum limits of the x-axis in degrees of longitude

y_lim

The length-2 vector representing the minimum and maximum limits of the y-axis in degrees of latitude

label_color_default

The default color for label text and arrows if the label_color column has blanks in the port/state description file(s)

label_fill_default

The default color for fill for label boxes if the label_color column has blanks in the port/state description file(s)

label_border_size

The thickness of the label box borders. NA means no border

arrowhead_size

The size of the arrowheads on the label arrows, in 'npc'

point_size

The size of the location points

point_color

The color of the location points

...

Details

The plot is customized in the data-tables/map-data/port-locations.csv and data-tables/map-data/state-locations.csv files, which both must have identical column names and number of columns (they are row-bound together in this function)

Value

A ggplot2::ggplot() object


pacific-hake/hake-assessment documentation built on Nov. 8, 2024, 1:16 p.m.