NodeVisStyle {RNetica}R Documentation

Gets/sets the nodes visual appearance in Netica.

Description

Netica internally has a number of styles it can use to draw a node, these including, "Default", "Absent", "Shape", "LabeledBox", "BeliefBars", "BeliefLine", and "Meter". The function NodeVisStyle() returns how the node will be displayed, or sets how it will be displayed.

Usage

NodeVisStyle(node)
NodeVisStyle(node) <- value

Arguments

node

A NeticaNode object whose style is to be determined.

value

A character string giving the new style. Must be one of "Default", "Absent", "Shape", "LabeledBox", "BeliefBars", "BeliefLine", or "Meter".

Details

The visual style of the node doesn't make much different in RNetica, as R does not display the node. However, it will control the appearance when the node is loaded into the Netica GUI.

Value

A character string which is one of the values "Default", "Absent", "Shape", "LabeledBox", "BeliefBars", "BeliefLine", or "Meter", or NA if an error occurred.

The setter method returns the modified node object.

Note

The Netica documentation indicates that in the future additional parameters can be added to the style, for example: "LabeledBox,CornerRoundingRadius=3,LineThickness=2"

Author(s)

Russell Almond

References

http://norsys.com/onLineAPIManual/index.html: GetNodeVisStyle_bn(), SetNodeVisStyle_bn(),

See Also

NeticaNode, NodeVisPos()

Examples

sess <- NeticaSession()
startSession(sess)
snet <- CreateNetwork("StylishNet", session=sess)

snode <- NewDiscreteNode(snet,"StyleMe")
stopifnot(NodeVisStyle(snode)=="Default")

NodeVisStyle(snode) <- "Meter"
stopifnot(NodeVisStyle(snode)=="Meter")

DeleteNetwork(snet)
stopSession(sess)


[Package RNetica version 0.5-4 Index]