View source: R/ExplodeLayoutBasic.R
get_explode_nodelist | R Documentation |
Takes the nodelist of a network and return an updated nodelist with the exploded coordinates based on radius, node color based on cluster, and node shape based on entity.
get_explode_nodelist(nodelist, radius = 1)
nodelist |
A nodelist is a dataframe including at least 5 columns: Label, X, Y, Cluster, Entity. Label is the node ID. They must be unique character strings. X and Y are the original coordinates. Cluster is the node clustering membership. They must be integers ranging from 1 to the number of clusters. Entity indicates which part of the bipartite network a node belongs to. (Can be either 1 or 2.) |
radius |
The explode radius of the projecting circle. Default to 1. |
A new nodelist with exploded coordinates, which is a dataframe including 5 columns: Label, X, Y, Color, baseShape.
exploded_nodelist=get_explode_nodelist(example_nodelist,radius=1.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.