ggdf {flowGraph}R Documentation

Prepares a given node and edge graph list for plotting.

Description

Prepares a given node and edge graph list for plotting by function plot_gr; do not use this function on its own.

Usage

ggdf(gr0)

Arguments

gr0

A list containing data frames e and v.

Details

codeggdf adds to the data frames v and e in slot graph from a flowGraph object specifying plotting options as required by plot_gr:

Value

A list containing data frames e and v, each with additional meta data column.

See Also

flowGraph-class get_phen_meta plot_gr

Examples


 no_cores <- 1
 data(fg_data_pos30)
 fg <- flowGraph(fg_data_pos30$count, class=fg_data_pos30$meta$class,
                 prop=FALSE, specenr=FALSE,
                 no_cores=no_cores)

 gr_ <- ggdf(fg_get_graph(fg))
 head(gr_$v)
 head(gr_$e)


[Package flowGraph version 1.2.0 Index]