Skip to contents

Plot KEGG pathway graph using visNetwork

Usage

make_kegg_visNetwork(g)

Arguments

g

visNetwork object representing the pathway graph

Value

visNetwork plot of the KEGG pathway

Details

This function converts the igraph object representing a KEGG pathway, generated by kegg_to_graph, into a visNetwork plot.

Examples

pathway <- "hsa04110" # Example pathway ID
graph <- kegg_to_graph(pathway_id = pathway)
plot <- make_kegg_visNetwork(graph)

plot