plot8gn: plots an object gn

Description Usage Arguments Details Value Examples

View source: R/f1.g4n2.code.r

Description

Standard plot of an object gn.
Following some coding found in slots x@pos and x@arc, decorations are added to the arcs and to the nodes. More precisely:
Each row of the matrix x@pos@posi is associated to a node. The first three columns give the (X,Y,Z) coordinates (in /rebastaba/ graphs are placed in R to the 3 and the 4th column indicates if the node must be surrounded by nothing (0), a square (1), a circle (2).
x@arc@fle is a matrix with rows associated to arcs. The first column is the iin of the departure node and the second the iin of the arrival node. The 3rd column indicates the style of the arrow by three combined parameters com = 100*code+10*lty+lwd. code is the standard parameter of basic R arrows function, lty and lwd parameters are standard ones from par... The standard value of com is 211.

Usage

1
plot8gn(x, y="useless", ..., main=NULL, frame=FALSE)

Arguments

x

the gn to plot

y

added useless argument to comply R requirement.

...

Further arguments to be passed to the plot function.

main

(=NULL) main title for the graph, when NULL x@description@name is taken as title.

frame

(=FALSE) to indicate if a frame has to be drawn

Details

Possible decorations for nodes are: square (1), circle (2).
x@arc@fle[,3] determines the style of the arcs: cdu
c gives the kind of arrows (see R function arrow): {0,1,2,3}
d gives the type of lines: {0,1,...,6}
u gives the width of the line: [0.5,5]

Value

returns nothing but a plot is drawn

Examples

1
2
 g4n3k("RESET"); # needed only for R checking, to be forgotten
 plot8gn(g4n.gn1);

g4n documentation built on May 2, 2019, 5:47 p.m.

Related to plot8gn in g4n...