Renders the composite LORT using G1 base-R conventions: ellipses for split nodes, rectangles for terminal nodes, directed arrows for edges.
Usage
# S3 method for class 'cta_ort'
plot(
x,
target_class = NULL,
class_labels = NULL,
digits = 1L,
main = "LORT",
split_fill = "#D9EAF7",
endpoint_fill = "#D9F7E6",
endpoint_palette = NULL,
border_col = "grey30",
text_col = "black",
edge_col = "grey40",
arrow_col = NULL,
show_caption = FALSE,
cex = 0.75,
...
)Arguments
- x
A
cta_ortobject.- target_class
Integer target class for terminal node annotation;
NULLfor a structural plot.- class_labels
Optional named character vector of class display names.
- digits
Decimal places for proportion labels. Default
1.- main
Plot title. Default
"ORT".- split_fill
Fill color for split (internal) ellipse nodes.
- endpoint_fill
Default fill for terminal rectangle nodes.
- endpoint_palette
Palette for terminal nodes when
target_classis supplied; afunction(n)or character color vector.- border_col
Border color for all nodes. Default
"grey30".- text_col
Text color for node labels. Default
"black".- edge_col
Color for directed edge arrows. Default
"grey40".- arrow_col
Arrow color;
NULL(default) usesedge_col.- show_caption
Logical; add color-encoding caption when
target_classis supplied. DefaultFALSE.- cex
Text expansion factor. Default
0.75.- ...
Unused.
Value
invisible(pd), the layout list from ort_plot_data.
Note
plot.cta_ort and ort_plot_data are legacy compatibility
names for the LORT method. See print.cta_ort for the naming
note.