Description Usage Arguments Value Note Author(s)
This script contains a function to draw a map for a single working group. Markers will be added to the centroids of participating countries.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | plot_WG_map(
WG_name,
WG_countries,
participation_colour = SOOScol[1],
country_border_colour = SOOScol[9],
country_border_lwd = 1,
marker_colour = NULL,
marker_dot_colour = NULL,
marker_size = 2.5,
marker_asp = 1.1,
marker_png = file.path(.libPaths()[1], "mapSOOSWG", "marker_base.png"),
marker_dot_png = file.path(.libPaths()[1], "mapSOOSWG", "marker_dot.png"),
add_marker = T,
add_marker_dot = T,
...
)
|
WG_name |
Name of the WG to be plotted |
WG_countries |
Character vector of the ISO3 codes of WG member countries |
participation_colour |
The fill colour of the participating countries. |
country_border_colour |
The colour of the participating country borders. |
country_border_lwd |
The width of the participating country borders. |
marker_colour |
The colour of the marker base, if not inherited from the PNG file. Leave as NULL if the PNG file contains the right colour. Note that no outline is possible if not drawn in the PNG file. |
marker_dot_colour |
The colour of the marker dot, if not inherited from the PNG file. Leave as NULL if the PNG file contains the right colour. |
marker_size |
The size of the marker. |
marker_asp |
The apect ratio to adjust the marker. |
marker_png |
The pathe to the base marker PNG file. |
marker_dot_png |
The path to the marker dot PNG file. |
add_marker |
If FALSE, no markers will be added. |
add_marker_dot |
TRUE of a marker dot is being added to the plot. |
... |
see base_plot() for further plot options (background_colour, world_map_colour, border_colour, plot_border_thickness) |
A ggplot object
v.0.1
Kimberlee Baldry
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.