View source: R/plot_net_address.R
plot_net_address | R Documentation |
This function takes an addresses data.frame, links it to an authors__references dataset and plots a network diagram generated for individual points of co-authorship.
plot_net_address(
data,
mapRegion = "world",
lineResolution = 10,
lineAlpha = 0.5
)
data |
the |
mapRegion |
what portion of the world map to show. possible values
include |
lineResolution |
the resolution of the lines drawn, higher numbers will make smoother curves default is 10. |
lineAlpha |
transparency of the lines, fed into ggplots alpha value. Number between 0 - 1. |
## Using the output of authors_georef (e.g., BITR_geocode)
data(BITR_geocode)
## Plots the whole world
output <- plot_net_address(BITR_geocode)
## Just select North America
output <- plot_net_address(BITR_geocode, mapRegion = 'North America')
## Change the transparency of lines by modifying the lineAlpha parameter
output <- plot_net_address(BITR_geocode, lineAlpha = 0.2)
## Change the curvature of lines by modifying the lineResolution paramater
output <- plot_net_address(BITR_geocode, lineResolution = 30 )
output <- plot_net_address(BITR_geocode, mapRegion = 'North America', lineAlpha = 0.2,
lineResolution = 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.