colour_by_term_set: Function to set colours of nodes in plot to distinguish terms...

View source: R/attributes.R

colour_by_term_setR Documentation

Function to set colours of nodes in plot to distinguish terms belonging to different term sets

Description

Function to set colours of nodes in plot to distinguish terms belonging to different term sets

Usage

colour_by_term_set(
  ontology,
  terms,
  term_sets,
  colour_generator = rainbow,
  alpha = 0.5
)

Arguments

ontology

ontology_index object

terms

Character vector of ontological terms

term_sets

List of character vectors of ontological term IDs

colour_generator

Function which returns a vector of colours, e.g. rainbow or heat.colors.

alpha

alpha parameter to pass to colour_generator.

Value

Character vector of colours, named by term.

See Also

colour_by_frequency, colour_by_population_frequency


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