Function to set colours of nodes in plot to distinguish terms belonging to different term sets
colour_by_term_set(
ontology,
terms,
term_sets,
colour_generator = rainbow,
alpha = 0.5
)Character vector of colours, named by term.
ontology_index object
Character vector of ontological terms
List of character vectors of ontological term IDs
Function which returns a vector of colours, e.g. rainbow or heat.colors.
alpha parameter to pass to colour_generator.
colour_by_frequency, colour_by_population_frequency