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!
gather_graph_node(
df,
index = NULL,
value = utils::tail(colnames(df), 1),
root = NULL
)
a tibble of graph nodes
A data frame
A vector of column names to group by
Column name used for summarizing node size, defaults to the last column
Root name for the root node connections, optional