plotFtree: Plots a (functional) regression tree

Usage Arguments Details Author(s)

View source: R/main.R

Usage

1
2
3
plotFtree(.object, .index = 1, .horizontal = FALSE, .lineWidth = 1,
  .depth = Inf, .labSize = 1, .labAng = 0, .ggReturn = FALSE,
  .ylimLow = 0, .ylimHigh = NA, .node = NULL, .round = NULL)

Arguments

.object

- An fTree object or .segments object produced with extractNodeData

.index

- Index of the tree you wish you plot (in the case of bootstrapped trees)

.horizontal

- Whether to plot the tree with horizontal orientation

.lineWidth

- The width of the tree lines

.depth

- Maximum plotting depth (useful for large trees)

.labSize

- The size of the node labels

.labAng

- The angle of node labels

.ggReturn

- Whether to return a ggplot object or not.

.ylimLow

- Lower limit of y axis

.ylimHigh

- Higher limit of y axis

.node

- A node you wish to highlight. The node is specified as a path throught the tree from the root node. Example: .node = '0llr' = 0 - root, l - left, l - left, r - right. The left side branches of the node will be painted in red, while the right side will be painted in blue.

.round

- The number of rounding digits for labels.

Details

This function relies on the extractNodeData function and ggplot plotting package. The function outputs publication ready images of the passed tree.

Author(s)

Ognjen Grujic (ogyg@stanford.edu)


ogru/fTree documentation built on May 29, 2019, 7:19 a.m.