plotNetworks {pairkat} | R Documentation |
Helper function for plotting networks of metabolites gathered
from the KEGG pathways database using the
GatherNetworks
function.
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
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")