treeview_taxa

shows pedigree in interactive html

Contents

Syntax

treeview_taxa (taxon, var, info)

Description

First produces pedigree with function pedigree and uses the result to create files /treeview/treeview_taxa.js and treeview_taxa_search.html and /treeview/treeview_taxa.css. Then opens AmPtool/taxa/treeview/treeview_taxa.html in the system browser.

Input:

Remarks

Taxon must be a node in the taxonomic tree, see list_taxa Name of variable must be in allStat.mat. If the numerical value is used, the length should equal length(select(taxon)). Construction time for large trees with specified second input may take a while.

Example of use

treeview_taxa('Cladocera');
treeview_taxa(select_taxon('Crustacea',1)); % choose from shown list of all nodes of Crustacea
treeview_taxa(select_taxon('',1));          % choose from shown list of all nodes of Animalia
treeview_taxa('Mammalia', 'kap');           % show distribution of kap (or any other variable in allStat) among mammals
% show distribution of start of development as fraction of age at birth among birds
var = read_stat(select('Aves'), 't_0', 'a_b'); treeview_taxa('Aves', var(:,1)./var(:,2));