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 the run is complete
1 2 3 4 5 6 7 8 9 | geocode_maps(
SOOS_WG_data,
outdir,
country_names_data = NULL,
institution_names_data,
add_countries = F,
filter_types = "all",
...
)
|
SOOS_WG_data |
A data frame. The data frame must contain the columns named "Acronym" (for the WG), "Affiliations" and "Countries.Represented" (optional). 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. This data frame is optional - do you want participating countries coloured? |
institution_names_data |
A data frame. The data frame must contain 4 columns labeled "Name" (what SOOS records the Affiliations as), "Type", "Latitude" and "Longitude". SSee example_institution_data for an example. |
add_countries |
If set to TRUE, participating countries will be coloured. |
... |
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!
v.0.1
Kimberlee Baldry
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.