get_predictions: Create data.frame with predictions for each node

View source: R/geom_node_plot.R

get_predictionsR Documentation

Create data.frame with predictions for each node

Description

Create data.frame with predictions for each node

Usage

get_predictions(party_object, ids, newdata_fun, predict_arg = NULL)

Arguments

party_object

object of class 'party'

ids

Id's to plot. Numeric, "terminal", "inner" or "all". MUST be identical to 'ids' of [geom_node_plot()] used to plot this data.

newdata_fun

function which takes 'data' of node and returns 'newdata' for 'predict()'

predict_arg

list of additional arguments passed to [predict()]


ggparty documentation built on Aug. 8, 2025, 6:45 p.m.