Create node layout using a bottom-up approach (literally) and overwrites ggparty-precomputed positions in plot_data.

term_node_pos(plot_data, dat)

Arguments

plot_data

Dataframe output of `ggparty:::get_plot_data()`.

dat

Dataframe of prediction values with scaled columns and clustered samples.

Value

Dataframe with terminal node information.