plotNetwork: Plot an adjacency weight matrix as a network Adapted from...

View source: R/plot.R

plotNetworkR Documentation

Plot an adjacency weight matrix as a network Adapted from https://stackoverflow.com/questions/43879347/plotting-a-adjacency-matrix-using-pure-r

Description

Plot an adjacency weight matrix as a network Adapted from https://stackoverflow.com/questions/43879347/plotting-a-adjacency-matrix-using-pure-r

Usage

plotNetwork(pos, adj, col = "black", line.col = "grey", line.power = 1, ...)

Arguments

pos

Position matrix

adj

Adjacency weight matrix

col

Color of points

line.col

Color of line

line.power

Thickness of lines

...

Additional plotting parameters

Value

None

Examples

data(mOB)
pos <- mOB$pos
w <- getSpatialNeighbors(pos)
plotNetwork(pos, w)


JEFworks/MERingue documentation built on June 11, 2022, 4:16 a.m.