WG_maps: Create multiple SOOS Working Group Map from a file

Description Usage Arguments Value Note Author(s)

View source: R/WG_maps.R

Description

This script contains a function to create all SOOS WG maps from a file. The function: - acesses the file - applies data from rows of the file to 1. plot a WG map using plot_WG_map() and 2. save the file as a .png file using save_map() - outputs a message for each sucessfull map and when teh run is complete

Usage

1
WG_maps(SOOS_WG_data, outdir, country_names_data, ...)

Arguments

SOOS_WG_data

A data frame. The data frame must contain the columns named "Acronym" (for the WG) and "Countries.Represented". See "example_WG_data" for an example.

outdir

The directory where you would like .png files saved

country_names_data

A data frame. The data frame must contain 2 columns labeled "Country" (what SOOS records the country as) and "ISO3_name". See "example_country_data" for an example.

...

see base_plot() and plot_WG_map() for further plot options (background_colour, world_map_colour, border_colour, plot_border_thickness)

Value

It will let you know if the code worked!

Note

In development. Final Draft.

Author(s)

Kimberlee Baldry


KimBaldry/mapSOOSWG documentation built on March 13, 2021, 6:57 p.m.