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

Description Usage Arguments Value See Also

View source: R/attributes.R

Description

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

Usage

1
2
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 Feb. 10, 2021, 5:06 p.m.