Description Usage Arguments Value See Also
unity.graph
plots a graph of detected relationships.
1 | unity.graph(df, spec, edgetypes, vcolors = c("forestgreen", "brown4"))
|
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. |
A ggplot object contianing the plot.
See https://github.com/nathaniel-mahieu/mz-unity for examples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.