tasccoda.tree_results.CAResult_tree.draw_tree_effects

CAResult_tree.draw_tree_effects(tree, covariate, *args, **kwargs)

Plot a tree with colored circles on the nodes indicating significant effects. See tutorial for an example.

Parameters
tree : ToyTreeToyTree

toytree tree object that defines the hierarchical structure. Should always be data.uns[“phylo_tree”] from the dataset used to generate the results object

covariate : strstr

The covariate, whose effects should be plotted

args

Passed to toytree.draw

kwargs

Passed to toytree.draw

Returns

Return type

Plots a tree