colour_by_term_set {ontologyPlot} | R 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 |
|
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. |
alpha |
|
Value
Character vector of colours, named by term.
See Also
colour_by_frequency
, colour_by_population_frequency
[Package ontologyPlot version 1.7 Index]