addMapOverlay: Make a map overlay for ggplot2

View source: R/plotting-framework-functions.R

addMapOverlayR Documentation

Make a map overlay for ggplot2

Description

Reads coastlines or country boundaries from the rnaturalearth package (rnaturalearthdata for the coastlines) and adds it to a ggplot.

Usage

addMapOverlay(map_plot, map_overlay)

Arguments

map_plot

The ggplot to which the map overlay should be addeded

map_overlay

A character string specifying the overlay to be used a string matching maps package dataset

Value

Returns data.frame suitable for plotting with ggplot::geom_path

Author(s)

Matthew Forrest matthew.forrest@senckenberg.de


MagicForrest/DGVMTools documentation built on Aug. 23, 2024, 8:05 a.m.