set_layout_graph: Determines cell hierarchy layout.

View source: R/00_graph.R

set_layout_graphR Documentation

Determines cell hierarchy layout.

Description

Determines cell hierarchy layout and returns the X, Y coordinate of each cell population.

Usage

set_layout_graph(gr, layout_fun = "layout.reingold.tilford")

Arguments

gr

A list containing data frames e and v.

layout_fun

A string of a function from the igraph package that indicates what layout should be used if a cell hierarchy is to be ploted; all such functions have prefix layout_ e.g. layout_fun="layout.reingold.tilford".

Value

A list containing data frames e and v; each data frame contains an X, Y column or coordinate for each node and edge.

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)

   head(set_layout_graph(fg_get_graph(fg)))


aya49/flowGraph documentation built on Feb. 4, 2024, 6:40 p.m.