plotNetwork | R Documentation |
Plot an adjacency weight matrix as a network Adapted from https://stackoverflow.com/questions/43879347/plotting-a-adjacency-matrix-using-pure-r
plotNetwork(pos, adj, col = "black", line.col = "grey", line.power = 1, ...)
pos |
Position matrix |
adj |
Adjacency weight matrix |
col |
Color of points |
line.col |
Color of line |
line.power |
Thickness of lines |
... |
Additional plotting parameters |
None
data(mOB) pos <- mOB$pos w <- getSpatialNeighbors(pos) plotNetwork(pos, w)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.