Description Usage Arguments Value Note Author(s)
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
1 |
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) |
It will let you know if the code worked!
In development. Final Draft.
Kimberlee Baldry
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.