unity.graph: Plot the results of mz-unity.search as a graph.

Description Usage Arguments Value See Also

Description

unity.graph plots a graph of detected relationships.

Usage

1
unity.graph(df, spec, edgetypes, vcolors = c("forestgreen", "brown4"))

Arguments

df

data.frame Columns named "to", "from", "rel". "rel" is used for coloring.

spec

data.frame Columns named "mz", "int". Rows correspond to vertex indices "to" and "from" in df.

edgetypes

data.frame Defines the colors of each edge rel type. COlumn names "rel", "label", "color"

vcolors

character The color for the positive and negative nodes respectively.

Value

A ggplot object contianing the plot.

See Also

See https://github.com/nathaniel-mahieu/mz-unity for examples.


nathaniel-mahieu/mz.unity documentation built on May 23, 2019, 12:19 p.m.