Learn R Programming

MetamapsDB (version 0.0.2)

prettifyGraph: returns metabolic graph with all the ornaments set Adds details into the igraph object

Description

returns metabolic graph with all the ornaments set Adds details into the igraph object

Usage

prettifyGraph(g, vsize = c(1, 2), vcolor = c("grey", "red"),
  withText = TRUE, vtext = c(0.5, 1), layout = FALSE)

Arguments

g

igraph Object

vsize

the vertex size

vcolor

length 2 vector for KO and compounds

withText

Conditional to include labels in

vtext

two vector text valuevsize

layout

Whether to calculate the layoutvcolor

Examples

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

Run the code above in your browser using DataLab