generate_ontology: Generate a trait ontology from a nexus file

Description Usage Arguments Examples

View source: R/generate_ontology.R

Description

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

Usage

1

Arguments

x

a 'nex' object containing character descriptions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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. 12, 2019, 6:49 p.m.