searchtree | R Documentation |
Function to grep search labels in tree and plot all connected components
searchtree(graph, pattern, plot = TRUE, mode = "out", ...)
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 |
Baumel, J. J., and L. M. Witmer. 1993. Osteologia. P. in Handbook of avian anatomy: nomina anatomica avium. Publications of the Nuttall Ornithological Club.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.