plot_coefficients: Plot the discriminating axes from treeda

Description Usage Arguments Value Examples

View source: R/plotting-functions.R

Description

Plots the leaf coefficients for the discriminating axes in a fitted treeda model aligned under the tree.

Usage

1
2
3
4
5
6
plot_coefficients(
  out.treeda,
  remove.bl = TRUE,
  ladderize = TRUE,
  tree.height = 2
)

Arguments

out.treeda

The object resulting from a call to treeda.

remove.bl

A logical, TRUE if the tree should be plotted after setting all branch lengths equal to the same value or not. The plots tend to look nicer when all the branch lengths are the same, and the branch length information is not used in the model.

ladderize

Layout parameter for the tree.

tree.height

The height of the tree relative to the height of the plot below.

Value

A plot of the tree and the coefficients.

Examples

1
2
3
4
5
6
data(treeda_example)
out.treeda = treeda(response = treeda_example$response,
    predictors = treeda_example$predictors,
    tree = treeda_example$tree,
    p = 1)
plot_coefficients(out.treeda)

treeDA documentation built on May 15, 2021, 1:07 a.m.