Description Usage Arguments Details Value Examples
Helper function for plotting networks of metabolites gathered
from the KEGG pathways database using the
GatherNetworks
function.
1 | plotNetworks(networks, pathway = "all", ...)
|
networks |
networks object obtained
with |
pathway |
Pathway to be plotted. Leaving this as 'all' will plot all pathways in 'networks' |
... |
Parameters to be passed to the |
Plots the specified network(s) as an igraph
a plot or list of plots generated by igraph
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(SummarizedExperiment)
data(smokers)
# Query KEGGREST API
networks <- GatherNetworks(SE = smokers, keggID = "kegg_id",
species = "hsa", minPathwaySize = 5)
# Plot all networks
plotNetworks(networks)
# Plot specific network
plotNetworks(networks,
pathway = "Glycerophospholipid metabolism",
layout = layout_with_kk,
main = "Glycerophospholipid Metabolism")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.