network_map | R Documentation |
Creates a plot of the a unimodal geographical network.
network_map(object, date, theme = "light")
object |
Unimodal geographical network. Needs to contain ISO3c country IDs. |
date |
String date at which the network snapshot was taken
(e.g. "2010-01-01").
Used by |
theme |
Theme you would like to use to plot the graph. Available themes are "light", "dark", and "earth". |
A map of a country level geographical network.
# Plot a network of environmental agreements signed in 2010 # extracted from {manyenviron} using data from ECOLEX. # Light theme membership <- migraph::as_igraph(data.frame( from = c("ETH", "ETH", "ETH", "ETH", "UKR", "UKR", "MOZ", "MOZ", "JPN", "JPN"), to = c("GNQ", "KEN", "TZA", "RWA", "CHN", "POL", "COL", "NZL", "MNE", "LKA"))) network_map(membership, date = "2010-01-01", theme = "light") + ggplot2::labs(title = "Sample of International Environmental Treaties 2010", subtitle = "Ecolex data", caption = "Created with love by {}") # Earth theme network_map(membership, date = "2010-01-01", theme = "earth") + ggplot2::labs(title = "International Environmental Treaties 2010", subtitle = "Ecolex data", caption = "Created with love by {}")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.