searchtree: Function to grep search labels in tree and plot all connected...

Description Usage Arguments References Examples

View source: R/searchtree.R

Description

Function to grep search labels in tree and plot all connected components

Usage

1
searchtree(graph, pattern, plot = TRUE, mode = "out", ...)

Arguments

graph

(required) input graph of trait ontology generated by, e.g., read_ontology() or stemsearch()

pattern

text to search for (regular expression)

plot

whether to plot (logical)

mode

whether to search for all edges to current node ("in") or away from ("out")

...

additional arguments passed to the 'plot.igraph' function

References

Baumel, J. J., and L. M. Witmer. 1993. Osteologia. P. in Handbook of avian anatomy: nomina anatomica avium. Publications of the Nuttall Ornithological Club.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# load Baumel and Whitmer (1993) ontology:
ont <- read_ontology(file = system.file("extdata", "baumel_ontology.txt",
package = "phenotools"))
# show all traits in ontology under "orbita"
searchtree(ont, "\\borbita\\b")

## End(Not run)

celiason/phenotools documentation built on Sept. 12, 2019, 6:49 p.m.