AK_Robinson_fxn: An Alaska Map Function (Robinson, unlabeled)

View source: R/AK_onlyMap_function.R

AK_Robinson_fxnR Documentation

An Alaska Map Function (Robinson, unlabeled)

Description

This function creates a base map of Alaska inclusive of NMFS Reporting Areas, showing Canadian and Russian shorelines. This function utilizes a shape file that is contained in the JAC tools package (default) that was originally generated by J.Gasper (AKRO, April 2021). Alternative shape files can be used by specifing a path and file name to the boundary shape file (.shp).

Usage

AK_Robinson_fxn(Path = "internal", ShapeFileName = "internal")

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

AK_Robinson_fxn()

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