NodeVisStyle {RNetica} | R Documentation |
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.
NodeVisStyle(node) NodeVisStyle(node) <- value
node |
A |
value |
A character string giving the new style. Must be one of
|
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.
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.
The Netica documentation indicates that in the future additional parameters can be added to the style, for example: "LabeledBox,CornerRoundingRadius=3,LineThickness=2"
Russell Almond
http://norsys.com/onLineAPIManual/index.html: GetNodeVisStyle_bn(), SetNodeVisStyle_bn(),
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)