AgNode-class {Rgraphviz} | R Documentation |
This class is used to represent nodes for the
Ragraph
class. One can retrieve various pieces of information
as well as draw them.
Objects can be created by calls of the form new("AgNode", ...)
.
center
:"xyPoint"
: The center
point of the nodename
:"character"
: The name of
the node, used to reference ittxtlabel
:"AgTextLabel"
: Label
for this edgeheight
:"integer"
: Height of
the node in pointsrWidth
:"integer"
: The right
half of the node in points.lWidth
:"integer"
: The left
half of the node in points.color
:"character"
: The drawing
color of the node.fillcolor
:"character"
: The
color to fill in the node with.shape
:"character"
: The shape
of the node.style
:"character"
: The style of the node.signature(object = "AgNode")
: Retrieves the
drawing color for the node.signature(object = "AgNode")
: Retrieves the
color to fill in the node image with.signature(object = "AgNode")
: Returns
the center point of the node.signature(object = "AgNode")
: Returns the
center as a two element list, with the first element containing
the 'x' value and the second element containing the 'y' value.signature(object = "AgNode")
: Returns
the height of the node. signature(object = "AgNode")
: Returns the
left width of the node.signature(object = "AgNode")
: Returns the
right width of the node.signature(object = "AgNode")
: Retrieves the name
of the node.signature(object = "AgNode")
: Returns the shape
of the node.signature(object = "AgNode")
: Returns the style
of the node.signature(object = "AgNode")
: Retrieves the
node label.Jeff Gentry
V <- letters[1:10] M <- 1:4 g1 <- randomGraph(V, M, .2) z <- agopen(g1,name="foo") x <- AgNode(z) ## list of AgNode objects vv <- x[[1]] ## The methods in use color(vv) fillcolor(vv) getNodeCenter(vv) getNodeXY(vv) getNodeHeight(vv) getNodeLW(vv) getNodeRW(vv) name(vv) shape(vv) style(vv) txtLabel(vv)