Description Usage Arguments Details Value Author(s) Examples
Compute an embedding of a sociomatrix into a two-dimensional space.
1 | xnet(Y, fm = suppressWarnings(require("network")), seed = 1)
|
Y |
(square matrix) The sociomatrix. |
fm |
(logical scalar) If TRUE, the Fruchterman-Reingold layout will be used (requires the network package). |
seed |
(integer) The random seed (the FR layout is random). |
Coordinates are obtained using the Fruchterman-Reingold layout if the
package network
is installed, and otherwise uses the first two
eigenvectors the sociomatrix.
(matrix) A matrix of two-dimensional coordinates.
Peter Hoff
1 2 3 4 | data(addhealthc3)
Y<-addhealthc3$Y
X<-xnet(Y)
netplot(Y,X)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.