scca_plot_spectrum: Plot Spectrum of a Node

Description Usage Arguments Details Value Examples

View source: R/scca_print.R

Description

Output and plot the spectrum (Eigenvalues in descending order) found at a particular node in a SCCA tree.

Usage

1
scca_plot_spectrum(scca, node_id, plot = TRUE)

Arguments

scca

The output of scca_compute

node_id

The node number (numeric) in the output tree

plot

If TRUE (default) the spectrum will be plotted. If FALSE only the spectrum data is returned.

Details

The node number can be found by printing the tree with scca_print(scca).

Value

The function returns a tibble containing the spectrum data.

Examples

1
2
3
4
5
6
  ## Not run: 
     s <- scca_compute(t(carnivora))
     scca_print(scca = s, 'k', 'n_labs')
     scca_plot_spectrum(scca = s, node_id = '3')

## End(Not run)

UtrechtUniversity/SCCA documentation built on April 16, 2021, 3:23 a.m.