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

View source: R/graphs.R

get_node_friendly_long_namesR Documentation

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

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

ontologyPlot documentation built on May 29, 2024, 3:10 a.m.