frcd | R Documentation |
A function to compute the graph coordinated system with a force directed layout algorithm
frcd(net, seed = seed, maxiter, drp, scl, mov, ...)
net |
an array representing the network relations |
seed |
(mandatory) the seed of the initial layout (see details) |
maxiter |
(optional) the maximum number of iterations |
drp |
(optional) for |
... |
Additional argument items |
scl |
(optional and experimental) numerical scalar ( |
mov |
(optional and experimental) numerical scalar ( |
This function is meant as an internal routine for graph visualization.
However, it can be used for the coord
option both in multigraph
and in bmgraph
where NULL
in seed
implies a random seed based on the clock watch of the computer.
A data frame with a coordinated system with two columns representing the abscissa and the ordinate in a two-dimensional rectangular Cartesian coordinate system.
Antonio Rivero Ostoic
Fruchterman, T.M.J., & Reingold, E.M. Graph drawing by force-directed placement. Software-Practice & Experience, 21(11), 1129-1164. 1991.
multigraph
, bmgraph
, stsm
, conc
## Create the data: two binary relations among three elements
arr <- round( replace( array(runif(18), c(3,3,2)), array(runif(18),
c(3,3,2))>.5, 3 ) )
## Coordinates for the force directed layout with random start
coord <- frcd(arr, seed = NULL)
## Plot multigraph with customized coordinates
multigraph(arr, coord = coord)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.