plotSDI {rSDI}R Documentation

plotSDI generates a plot of the network and SDI metrics on a geographic map.

Description

plotSDI generates a plot of the network and SDI metrics on a geographic map.

Usage

plotSDI(
  g,
  variant = "",
  circle.size.scale = 1,
  circle.color = "red",
  edges = FALSE,
  edge.width.range = c(0.01, 0.5)
)

Arguments

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

Value

returns a ggplot2 plot

Examples

TMSDI <- SDI(TurkiyeMigration.flows, TurkiyeMigration.nodes, variant="vuw")
plotSDI(TMSDI, variant="vuw", circle.size.scale=1)


[Package rSDI version 0.2.1 Index]