ig2ggplot: Convert igraph to ggplot2 object

Description Usage Arguments Examples

View source: R/ig2ggplot.R

Description

Converts a metabolic igraph obj into a ggplot plot

Usage

1
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

1
2
p = nitrogenMetab %>% prettifyGraph %>% ig2ggplot(., dfOnly=FALSE)
p

MetamapsDB documentation built on May 1, 2019, 9:23 p.m.