xnet: Network embedding

Description Usage Arguments Details Value Author(s) Examples

Description

Compute an embedding of a sociomatrix into a two-dimensional space.

Usage

1
xnet(Y, fm = suppressWarnings(require("network")), seed = 1)

Arguments

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).

Details

Coordinates are obtained using the Fruchterman-Reingold layout if the package network is installed, and otherwise uses the first two eigenvectors the sociomatrix.

Value

(matrix) A matrix of two-dimensional coordinates.

Author(s)

Peter Hoff

Examples

1
2
3
4

winnga/amen documentation built on May 17, 2019, 8:46 p.m.