colour_by_frequency: Function to assign colours to terms based on frequency with...

Description Usage Arguments Value See Also

Description

Function to assign colours to terms based on frequency with which terms appear in term_sets

Usage

1
2
colour_by_frequency(ontology, terms, term_sets,
  colour_func = colorRampPalette(c("Yellow", "Green", "#0099FF")))

Arguments

ontology

ontology_index object

terms

Character vector of ontological terms

term_sets

List of character vectors of ontological term IDs

colour_func

Function capable of returning a set of colours, given the number of colours it needs to return

Value

Character vector of colours, named by term

See Also

colour_by_term_set, colour_by_population_frequency



Search within the ontologyPlot package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.