get_nodelist_for_plotting: Format a nodelist for plotting using the new coordinates...

View source: R/ExplodeLayoutBasic.R

get_nodelist_for_plottingR Documentation

Format a nodelist for plotting using the new coordinates found by ExplodeLayout

Description

Format a nodelist for plotting using the new coordinates found by ExplodeLayout

Usage

get_nodelist_for_plotting(nodelist, new_coordinates)

Arguments

nodelist

A dataframe including at least 3 columns: Label, Cluster, Entity. Entity is either 1 or 2, indicating which part of the bipartite network a node is in.

new_coordinates

A dataframe including at least 3 columns: Label, newX, newY.

Value

A dataframe including 5 columns: Label, X, Y, Color, baseShape.

Examples

exploded_coords=explode_coordinates(example_nodelist,radius=1.2)
plotting_nodelist=get_nodelist_for_plotting(example_nodelist,exploded_coords)

ExplodeLayout documentation built on July 1, 2022, 9:06 a.m.