Learn R Programming

multigraph (version 0.91)

conc: 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 N identity (default)

X reflection through the vertical center line

Y reflection through the horizontal center line

D reflection across diagonal Y=X

L reflection across diagonal Y=-X

Additional argument items

Value

A data frame with the coordinated system with two columns representing the abscissa and the ordinate in a two-dimensional rectangular Cartesian coordinate system.

Details

In a Euclidean plane computes the coordinated system with a concentric layout with at least two radii (unless \(n = 1\)). In case nr is not specified, 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 a factor vector.

See Also

multigraph, bmgraph, frcd, stsm

Examples

Run this code
# NOT RUN {
## 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 costumized coordenates
multigraph(arr, coord = coord)

# }

Run the code above in your browser using DataLab