gather_graph_node: Gather graph nodes from a data frame Please note that this...

View source: R/GatherGraphNode.R

gather_graph_nodeR Documentation

Gather graph nodes from a data frame Please note that this function is from the 'ggraph' package and has not been altered in functionality, but it has been optimized and iterated. It is not original content of 'TransProR'. However, since 'ggraph' caused frequent GitHub Action errors during the creation of 'TransProR', the author directly referenced the involved functions in 'TransProR'. This is not the author's original creation. All users please be aware!

Description

Gather graph nodes from a data frame Please note that this function is from the 'ggraph' package and has not been altered in functionality, but it has been optimized and iterated. It is not original content of 'TransProR'. However, since 'ggraph' caused frequent GitHub Action errors during the creation of 'TransProR', the author directly referenced the involved functions in 'TransProR'. This is not the author's original creation. All users please be aware!

Usage

gather_graph_node(
  df,
  index = NULL,
  value = utils::tail(colnames(df), 1),
  root = NULL
)

Arguments

df

A data frame

index

A vector of column names to group by

value

Column name used for summarizing node size, defaults to the last column

root

Root name for the root node connections, optional

Value

a tibble of graph nodes


TransProR documentation built on April 4, 2025, 3:16 a.m.