plot_map: Create a map of a part of the west coast of North America,...

View source: R/plot-map.R

plot_mapR Documentation

Create a map of a part of the west coast of North America, including bathymetry raster and contours

Description

Create a map of a part of the west coast of North America, including bathymetry raster and contours

Usage

plot_map(
  crs_ll = 4326,
  x_lim = c(-140, -113),
  y_lim = c(33, 58),
  coast_line_color = "black",
  coast_line_thickness = 0.1,
  coast_fill = "grey",
  show_bathy_contours = TRUE,
  show_bathy_raster = TRUE,
  bathy_resolution = 1,
  bathy_alpha = 0.8,
  bathy_contours = c(100, 200, 500, 1000, 1500),
  bathy_contour_color = "black",
  bathy_contour_thickness = 0.25,
  bathy_raster_scale = scale_fill_continuous(type = "gradient")
)

Arguments

crs_ll

Coordinate Reference System (CRS) number for a latitude/longitude-based projection. This could be NAD83 or WGS84 or others. The 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

coast_line_color

The line color for the coastline

coast_line_thickness

The line thickness for the coastline

coast_fill

The fill color for the land areas

show_bathy_contours

Logical. If TRUE draw the bathymetry contour lines

show_bathy_raster

Logical. If TRUE draw the bathymetry raster layer

bathy_resolution

The resolution for the bathymetry in minutes. See marmap::getNOAA.bathy()

bathy_alpha

The transparency for the bathymetric raster layer

bathy_contours

A vector of contours to show contour lines for. These can be either positive or negative; they will all be made negative in the function

bathy_contour_color

The line color for the bathymetric contours

bathy_contour_thickness

The line thickness for the bathymetric contours

bathy_raster_scale

A ⁠ggplot2::scale_*⁠ function describing the color gradient to use for the bathymetry raster. For example: scale_fill_gradientn(colors = c("red", "orange", "yellow"))

Value

A ggplot2::ggplot() object


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