get_nodelist_for_plotting {ExplodeLayout}R 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)

[Package ExplodeLayout version 0.1.2 Index]