generate_ontology: Generate a trait ontology from a nexus file

View source: R/generate_ontology.R

generate_ontologyR Documentation

Generate a trait ontology from a nexus file

Description

Comma separated terms are used to define links among components of a nexus character list

Usage

generate_ontology(x)

Arguments

x

a 'nex' object containing character descriptions

Examples

## Not run: 
x <- read.nex(system.file("extdata", "clarke_2006.nex", package = "phenotools"))
# plot data matrix:
plot(x)
# generate ontology based on comma-separated terms in characters:
ont <- generate_ontology(x)
# plot ontology for humerus characters:
searchtree(ont$tree, pattern="humer")

## End(Not run)


celiason/phenotools documentation built on Sept. 29, 2024, 5:43 p.m.