Description Usage Arguments Value See Also
unity.specgraph
plots a graph of detected relationships on top of a mass spectrum.
1 2 | unity.specgraph(df, spec, edgetypes, speccolor = "black",
circlecolor = "forestgreen")
|
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" |
speccolor |
character The color for the spectrum plot |
circlecolor |
character The color for the circles at the spectrum apexes. |
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.