plot_geocode_map: Draw a single SOOS Working Group Map with institution markers

Description Usage Arguments Value Note Author(s)

View source: R/plot_geocode_map.R

Description

This script contains a function to draw a map for a single working group with institution markers.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
plot_geocode_map(
  WG_name,
  WG_institutions,
  hilight_countries,
  WG_countries = NULL,
  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,
  ...
)

Arguments

WG_name

Name of the WG to be plotted

WG_institutions

Dataframe of the institution geocodes to be plotted with column names as "Institution", "lat" and "lon"

hilight_countries

If true, also colour the member countries.

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)

Value

A ggplot object

Note

v.0.1

Author(s)

Kimberlee Baldry


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