Learn R Programming

MetamapsDB (version 0.0.2)

ig2ggplot: Convert igraph to ggplot2 object

Description

Converts a metabolic igraph obj into a ggplot plot

Usage

ig2ggplot(g, dfOnly = TRUE, labels = FALSE, metab = TRUE, ...)

Arguments

g

igraph object

dfOnly

outputs the data.frame

labels

to show labels or not

metab

it is a metabolic graph

...

additional dbquery parameters

Examples

Run this code
# NOT RUN {
p = nitrogenMetab %>% prettifyGraph %>% ig2ggplot(., dfOnly=FALSE)
p
# }

Run the code above in your browser using DataLab