Learn R Programming

ontologyPlot (version 1.0)

get_node_friendly_long_names: Split up node labels across lines so they fit in nodes better

Description

Split up node labels across lines so they fit in nodes better

Usage

get_node_friendly_long_names(ontology, terms, official_names = FALSE)

Arguments

ontology
ontology_index object
terms
Character vector of ontological terms
official_names
Logical value indicating whether to use the exact names from the ontology. Otherwise, shortened, capitalised names are used.

Value

Character vector.

Examples

Run this code
library(ontologyIndex)
data(hpo)
get_node_friendly_long_names(hpo, c("HP:0001873", "HP:0011877"))

Run the code above in your browser using DataLab