Skip to contents

Plot a ConsortiumMetabolismAlignment object

Usage

# S4 method for class 'ConsortiumMetabolismAlignment,ANY'
plot(x, type = NULL, ...)

Arguments

x

A ConsortiumMetabolismAlignment object.

type

Character specifying the plot type: "heatmap", "network", or "scores".

...

Extra arguments forwarded to the underlying plot helper. For type = "network", the most useful are edgeColourValues (named character vector mapping shared, query, reference to colours; defaults emphasise the shared edges with solid black against light/dark grey) and nodeColourValues (override the node role palette).

Value

A ggplot object.

Examples

cm1 <- synCM("comm_1", n_species = 3, max_met = 5)
cm2 <- synCM("comm_2", n_species = 4, max_met = 6)
cma <- align(cm1, cm2)
plot(cma)