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

Description Usage Arguments Value See Also

Description

unity.specgraph plots a graph of detected relationships on top of a mass spectrum.

Usage

1
2
unity.specgraph(df, spec, edgetypes, speccolor = "black",
  circlecolor = "forestgreen")

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"

speccolor

character The color for the spectrum plot

circlecolor

character The color for the circles at the spectrum apexes.

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.