Plot method for the dtree function

# S3 method for dtree
plot(
  x,
  symbol = "$",
  dec = 2,
  final = FALSE,
  orient = "LR",
  width = "900px",
  ...
)

Arguments

x

Return value from dtree

symbol

Monetary symbol to use ($ is the default)

dec

Decimal places to round results to

final

If TRUE plot the decision tree solution, else the initial decision tree

orient

Plot orientation: LR for vertical and TD for horizontal

width

Plot width in pixels (default is "900px")

...

further arguments passed to or from other methods

Details

See https://radiant-rstats.github.io/docs/model/dtree.html for an example in Radiant

See also

dtree to generate the result

summary.dtree to summarize results

sensitivity.dtree to plot results

Examples

dtree(movie_contract, opt = "max") %>% plot() dtree(movie_contract, opt = "max") %>% plot(final = TRUE, orient = "TD")