Learn R Programming

ontologyPlot (version 1.7)

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)

Value

Character vector.

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.

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