View source: R/plot_stock_boundary_map.R
plot_stock_boundary_map | R Documentation |
Slightly cleaned up from Yellowtail Rockfish map created in 2017: https://github.com/iantaylor-NOAA/YTRK_doc/blob/master/Rcode/map_showing_areas_v2.R It writes a PNG file to figures/map_of_stock_boundaries_40-10.png. This depends on the mapdata package but I got an Error: 'worldHiresMapEnv' is not an exported object from 'namespace:maps' so include require(mapdata) in the function as a quick solution.
plot_stock_boundary_map(
names = c("North", "South"),
cols = NULL,
caption = "Map of the investigated area. The dashed line and colors delineate the northern (blue) from the southern (red) assessed area",
alttext = "Outline of U.S. west coast split at forty degrees ten minutes north latitude"
)
names |
A vector of names for north and south areas |
cols |
A vector of colors for north and south areas. |
caption |
A character string providing the caption for the figure. The caption should not contain any special LaTeX characters because escaping is not performed within this function. As of now, please leave off the final full stop because it is added by sa4ss::add_figure. |
alttext |
A character string providing the alternative text for the figure. The caption should not contain any special LaTeX characters because escaping is not performed within this function. As of now, please leave off the final full stop because it is added by sa4ss::add_figure. |
Ian G. Taylor
plot_map()
# make map using colors used in data-raw/lingcod_catch.R
plot_stock_boundary_map()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.