This function extracts a single decision tree from an Rforce forest,
generates its Graphviz DOT representation via the underlying C backend,
and renders it using DiagrammeR. The DOT file is stored temporarily
and automatically removed after the R session.
Value
A DiagrammeR graph object representing the visualized decision tree. Additionally, a message is printed showing the location of the temporary DOT file.
Details
Internally, this function:
Validates input.
Creates a temporary
.dotfile.Calls the C function
R_PrintTreevia.Callto write the DOT graph representation of the tree.Displays the tree structure using
DiagrammeR::grViz().
The DOT file persists only for the current R session and is stored in a temporary directory. It is automatically cleaned up when the session ends.