get_predictions: Create data.frame with predictions for each node

Description Usage Arguments

View source: R/geom_node_plot.R

Description

Create data.frame with predictions for each node

Usage

1
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 July 18, 2019, 5:04 p.m.