| ChanceNode | R Documentation |
An R6 class representing a chance node in a decision tree.
A chance node is associated with at least two branches to other
nodes, each of which has a conditional probability (the probability of
following that branch given that the node has been reached). Inherits from
class Node.
rdecision::Node -> ChanceNode
new()Create a new ChanceNode object
ChanceNode$new(label = "")
labelAn optional label for the chance node.
A new ChanceNode object
grob()Creates a grid::grob for a chance node.
ChanceNode$grob(x, y, bb = FALSE)
xx coordinate of the node, grid::unit object.
yy coordinate of the node, grid::unit object.
bbLogical. If TRUE, function returns the bounding box.
A grob containing the symbol and label, or a bounding box as a grid::unit vector with elements: left, right, bottom, top.
clone()The objects of this class are cloneable with this method.
ChanceNode$clone(deep = FALSE)
deepWhether to make a deep clone.
Andrew Sims andrew.sims@newcastle.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.