hpo.plot: Plot HPO graph object

Description Usage Arguments Value See Also Examples

Description

Plot HPO graph object

Usage

1
2
3
4
5
6
7
hpo.plot(hpo.terms, terms = apply.term.filters(hpo.terms = hpo.terms,
  plotting.context = plotting.context, term.filters = list()),
  plotting.context = NULL, hpo.phenotypes = NULL, term.frequencies = NULL,
  colours = "cyan", labels = get.simple.node.labels,
  borders = "#FFFFFF00", sizes = 0.75, font.sizes = rep(30,
  length(terms)), shapes = rep("circle", length(terms)), nodeAttrs = NULL,
  arrowAttrs = list(color = "#000000"), ...)

Arguments

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

hpo.phenotypes

List of HPO term character vectors

term.frequencies

Numeric vector of population frequencies of terms (named by term codes)

colours

Function to set the colours of the HPO nodes in the graph based on the plotting context, or a character vector of colours

labels

Function to set the labels of the HPO nodes in the graph based on the plotting context, or a character vector of node labels

borders

Function to set the borders of the HPO nodes in the graph based on the plotting context, or a character vector of border colours

sizes

Function to set the sizes of the HPO nodes in the graph based on the plotting context, or a numeric vector of node sizes

font.sizes

Function to set the font sizes of the text to be placed in the HPO nodes in the graph based on the plotting context, or an integer vector of font sizes

shapes

Function to set the shapes of the HPO nodes in the graph based on the plotting context, or a character vector of shape names (defaults to 'circle')

nodeAttrs

Pass nodeAttrs directly to rgraphviz plotting function

arrowAttrs

List of properties to set for arrows (note, these properties will be used for all arrow)

...

Extra arguments to pass to plot

Value

Plots graph

See Also

get.hpo.graph

Examples

1
2
3
4
5
6
data(hpo.terms)
hpo.plot(
	hpo.terms=hpo.terms,
	terms=get.ancestors(hpo.terms, 
	c("HP:0001382","HP:0004272","HP:0007917","HP:0004912","HP:0001596"))
)

Example output



hpoPlot documentation built on May 2, 2019, 5:52 a.m.