View source: R/plotting-framework-functions.R
addMapOverlay | R Documentation |
Reads coastlines or country boundaries from the rnaturalearth package (rnaturalearthdata for the coastlines) and adds it to a ggplot.
addMapOverlay(map_plot, map_overlay)
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 |
Returns data.frame suitable for plotting with ggplot::geom_path
Matthew Forrest matthew.forrest@senckenberg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.