plotSDI | R Documentation |
plotSDI generates a plot of the network and SDI metrics on a geographic map.
plotSDI(
g,
variant = "",
circle.size.scale = 1,
circle.color = "red",
edges = FALSE,
edge.width.range = c(0.01, 0.5)
)
g |
The igraph object to be plotted, whose vertices have attributes corresponding to SDI metrices. |
variant |
The SDI variant with a prefix, such as "SDI_vuw", etc. |
circle.size.scale |
Increase of decrease the size of circles drawn on nodes to represent SDI metric |
circle.color |
Change color of circles |
edges |
Whether to draw edges or not |
edge.width.range |
If edges are to be drawn give a custom range of edge widths |
returns a ggplot2 plot
TMSDI <- SDI(TurkiyeMigration.flows, TurkiyeMigration.nodes, variant="vuw")
plotSDI(TMSDI, variant="vuw", circle.size.scale=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.