conc {multigraph} | R Documentation |
Concentric layout
Description
A function to compute the graph coordinated system with a concentric layout
Usage
conc(net, nr, irot, inv, flip, mirror=c("N","X","Y","D","L"), ...)
Arguments
net |
an array representing the network relations |
nr |
a scalar with the number of radii, or a vector with the clustering of the actors. |
irot |
a scalar or vector with the “internal rotation” for each circle from closer to the center point to further away |
inv |
(optional and logical) should the circles be with an inverted ordering? |
flip |
(optional and logical) should the alternating circles be flipped? |
mirror |
mirror transformation
|
... |
Additional argument items |
Details
In a Euclidean plane computes the coordinated system with a concentric layout with at least two radii (unless n = 1
).
In case that the number of radii is not specified in nr
, approx. half of the vertices are located at one radius and half in another one.
The clustering of the actors may be used to establish the location of the vertices in different radii as a numerical, character, or factor vector.
Value
A data frame with a coordinated system with two columns representing the abscissa and the ordinate in a two-dimensional rectangular Cartesian coordinate system.
Author(s)
Antonio Rivero Ostoic
See Also
multigraph
, bmgraph
, frcd
, stsm
Examples
## 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 concentric layout with two radii
coord <- conc(arr, nr = 2)
## Plot multigraph with customized coordinates
multigraph(arr, coord = coord)