get_explode_nodelist: Explode the old coordinates using cluster membership and...

View source: R/ExplodeLayoutBasic.R

get_explode_nodelistR Documentation

Explode the old coordinates using cluster membership and generate nodelist for plotting

Description

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.

Usage

get_explode_nodelist(nodelist, radius = 1)

Arguments

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.

Value

A new nodelist with exploded coordinates, which is a dataframe including 5 columns: Label, X, Y, Color, baseShape.

Examples

exploded_nodelist=get_explode_nodelist(example_nodelist,radius=1.2)

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