ggplot2 map of the world over the current
initial ggplot object
flag indicating whether a map border should be drawn or not; see details.
This function uses
ggplot2::map_data in order to create a world map. Since, by default, this creates lines crossing the world at the (-180,180) longitude boundary, function
.homogenise_maps is used to split the polygons at this boundary into two. If
inc_border is TRUE, then a border is drawn around the lon-lat space; this option is most useful for projections that do not yield rectangular plots (e.g., the sinusoidal global projection).
the help file for the dataset
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.