Plot policy-tree decision and projection panels
Source:R/margot_policy_tree_reporting.R
margot_plot_policy_tree_panels.RdBuilds the standard two-panel policy-tree display: the branching decision tree in panel A, with the projection plot of evaluation points below in panel B.
Arguments
- result_object
A list returned by
margot_causal_forest()or a compatible policy-tree workflow object.- model_name
Character scalar naming the model to plot.
- max_depth
Integer, usually
1or2.- original_df
Optional data frame with original-scale variables.
- label_mapping
Optional named list used for display labels.
- show_leaf_metrics
Logical. If
TRUE, the decision tree panel includes leafT-Ccontrasts and sample shares.- leaf_metrics
Optional output from
margot_policy_leaf_summary()ormargot_table_policy_tree().- layout
List passed to
margot_plot_policy_combo()for panel heights.- annotation
List passed to
margot_plot_policy_combo()for tags.- projection_args
Optional list of arguments passed to
margot_plot_policy_projection().- decision_tree_args
Optional list of arguments passed to
margot_plot_policy_decision_tree().