Learn R Programming

cat.dt (version 0.3.0)

plot_tree: CAT decision tree plot

Description

Generates a plot object to visualize the CAT decision tree

Usage

plot_tree(object, levels = 3, tree = 1)

Arguments

object

A cat.dt object

levels

Number of levels to plot, starting from the first one.

tree

Index of tree to plot. The total number of trees is given by length(nodes$nodes[[1]]).

Value

A ggplot2 object