plot_hierarchy: Plot part of an ontology as a tree.

Description Usage Arguments Value

View source: R/plot.R View source: R/plot.R

Description

Plot part of an ontology as a tree.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
plot_hierarchy(
  path,
  o,
  terms,
  test = NULL,
  include_ancestors = TRUE,
  highlight = character(0),
  highlight.color = "black",
  text_wrap = 20,
  font = "Arial",
  color.low = "#add8e6",
  color.high = "#ff0000"
)

Arguments

path

Path to save Graphviz DOT file.

o

An ontology object.

terms

Character vector of terms to include in the plot.

test

Test result object computed with test_terms. Used to color terms according to p-value.

include_ancestors

Include all ancestors of terms in 'terms'.

highlight

Character vector of terms to highlight.

highlight.color

Border color for highlighted terms.

text_wrap

Wrap term descriptions at this line width.

font

Name of font to use in nodes.

color.low

Gradient color for least significant terms.

color.high

Gradient color for most significant terms.

Value

Path to produced graph.


SimonLarsen/higana documentation built on April 24, 2020, 7:29 a.m.