AKMap_fxn: An Alaska Map Function

View source: R/AKMap_function.R

AKMap_fxnR Documentation

An Alaska Map Function

Description

This function creates a base map of Alaska, showing Canadian and Russian shorelines. This function uses the 'world2' dataset included in the sf package to generate a map of Alaska inclusive of the Canaian and Russian shorelines.

Usage

AKMap_fxn()

Details

Note that the warning message: Warning message: In st_centroid.sf(nmfs_areas_shapefile): st_centroid assumes attributes are constant over geometries of x
Indicates that the lables are not located exactly on the centroid for the NMFS Reporting Area (in addition some were intentially moved).
Additionally note the message "although coordinates are longitude/latitude, st_intersection assumes that they are planar" indicates that spatial coordinates are on a flat space (R^2, not an ellipsoid or sphere on S^2). Package s2 is not in use.
See also sf package: https://cran.r-project.org/web/packages/sf/index.html and s2 package https://cran.r-project.org/web/packages/s2/index.html

There are 5 maps contained in the JACtools package:

  • 2 Mercator with NMFS Reporting Areas (with and without labels: AK_MercatorL_fxn, AK_Mercator_fxn)

  • 2 Robinson with NMFS Reporting Areas (with and without labels: AK_RobinsonL_fxn, AK_Robinson_fxn)

  • 1 Mercator without NMFS Reporting Areas (AKMap_fxn)

https://www.icsm.gov.au/education/fundamentals-mapping/projections/commonly-used-map-projections

Examples

AKMap_fxn()

JenC36/JACtools documentation built on Oct. 20, 2024, 8:05 a.m.