Description Usage Arguments Value

Function to colour HPO nodes in plot with colours based on information content/frequency of terms with respect to population

1 2 3 4 5 | ```
get.pop.frequency.based.colours(hpo.terms, terms, plotting.context,
colourPalette = colorRampPalette(c("Yellow", "Green", "#0099FF"))(10),
terms.freq = if (is.null(plotting.context$frequency))
exp(-plotting.context$information[terms]) else plotting.context$frequency,
max.colour.freq = max(terms.freq), min.colour.freq = min(terms.freq))
``` |

`hpo.terms` |
R-Object representation of HPO |

`terms` |
Character vector of HPO terms |

`plotting.context` |
List object with hpo.phenotypes slot for list of character vectors of terms |

`colourPalette` |
Character vector of colours for the different information contents of the terms to be plotted, going from rare to common |

`terms.freq` |
Numeric vector of frequencies of terms in plot, named by term |

`max.colour.freq` |
Numeric value in [0, 1] giving the maximum frequency (to which the dullest color will be assigned) |

`min.colour.freq` |
Numeric value in [0, 1] giving the minimum frequency (to which the brightest color will be assigned) |

Character vector of colours, named by term

hpoPlot documentation built on May 19, 2017, 4:40 p.m.

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

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

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.