Learn R Programming

multigraph (version 0.91)

ccgraph: Cayley colour graph

Description

A function to create and manipulate bipartite Cayley colour graphs

Usage

ccgraph(x, main = NULL, seed = 0, maxiter = 100, alpha = c(1, 1, 1), scope, collRecip,
        showLbs, showAtts, cex.main, coord, clu, cex, lwd, pch, lty, bwd, att, bg, mar,
        pos, asp, ecol, vcol, vcol0, hds, vedist, rot, mirrorX, mirrorY, col, lbat, swp, 
	loops, swp2, scl, mirrorD, mirrorL, conc, lbs, mirrorV, mirrorH, 
	ffamily, fstyle, fsize, fcol, ...)

Arguments

x

an algebraic structure, typically a "Semigroup" object class

main

(optional) title of the plot

seed

(optional) the random seed number for the vertices' initial coordinates. Ignored except for force, stress and rand

maxiter

(optional) the maximum number of iterations in layout algorithms. Ignored except for force, stress and rand

alpha

vector (vertex, edge, bg) with the alpha color transparecy

scope

(optional) the scope of the graph (see details)

collRecip

(optional and logical) whether or not collapse reciprocated edges in the unidrected graph

showLbs

(optional and logical) whether or not show the vertex labels when dimnames available

showAtts

(optional and logical) whether or not show the vertex attribute labels

cex.main

(optional) the size of the plot's title

coord

(optional) data frame with the coordinates of the vertices. If coordinates are given then the layout option is ignored

clu

(optional) the clustering of the vertices (see details)

cex

(optional) the size of the vertices

lwd

(optional) the width of the edges. Ignored if weighted is set to TRUE

pch

(optional) the symbol representing the vertices

lty

(optional) the shape of the edges

bwd

(optional) the width of the bundle edges. Ranges from 0 (edges collapsed) to the default 1 (depending on the vertices' size). For weighted a value greater than one is possible

att

(optional) a vector or an array representing the vertex attributes

bg

(optional) the background color of the plot

mar

(optional) the margins of the plot

pos

(optional) the position of the vertices' labels (0 means ``at the center of the vertex'')

asp

(optional) the aspect ratio of the plot

ecol

(optional) the color of the edges

vcol

(optional) the color of the vertices

vcol0

(optional) the color of the vertices' contour (only works for pch 21 through 25

hds

(optional and experimental) arcs' head scale

vedist

(optional and experimental) a real number with vertex - edge distance

rot

(optional) clockwise rotation of the graph in degrees

mirrorX

(optional) mirror of the X axis

mirrorY

(optional) mirror of the Y axis

col

(optional) alias for vcol

lbat

(optional) the labels for the vertex attributes

swp

(optional and logical) whether or not swap the bundle patterns

loops

(optional, logical, and experimental) plot graph loops?

swp2

(optional and logical) whether or not swap reciprocals

scl

(optional and experimental) numerical scalar (x and y) or vector (x, y) of the graph's scale

mirrorD

(optional) mirror reflection across diagonal Y=X

mirrorL

(optional) mirror reflection across diagonal Y=-X

conc

(optional and logical) whether the layout is concentric or not

lbs

(optional) the vertex labels

mirrorV

same as mirrorX

mirrorH

same as mirrorY

ffamily

the font family

fstyle

the font style

fsize

the font size

fcol

the font color

Additional argument items (see e.g. par)

Value

A plot of the semigroup or group structure.

Details

The Cayley colour graph is a graphical representation of the relationships among relations in the relational structure of a given multiplex network. Both nodes and directed edges represent string relations and each shape (and color) corresponds to a specific generator relation of the semigroup structure.

See Also

semigroup, multigraph, frcd, conc

Examples

Run this code
# NOT RUN {
## Create an abstract semigroup
arr <- round( replace( array(runif(18), c(3,3,2)), array(runif(18),
       c(3,3,2))>.5, 1 ) )
S <- semigroup(arr)

## plot its Cayley graph
ccgraph(S)
# }

Run the code above in your browser using DataLab