add_edge: Add a new edge to a visNetwork edge dataframe

View source: R/fct_visNetwork_helpers.R

add_edgeR Documentation

Add a new edge to a visNetwork edge dataframe

Description

Add a new edge to a visNetwork edge dataframe

Usage

add_edge(
  edgedf,
  id,
  label,
  to,
  from,
  type,
  parameter,
  penalty,
  K = Inf,
  a = 0,
  min = NA,
  max = NA,
  selfReference.angle = NA,
  selfReference.size = 40,
  hidden = FALSE,
  color = "black"
)

Arguments

edgedf

a dataframe containing the edges.

id

edge id

label

edge label

to

Where does the edge go to?

from

Where does the edge come from?

type

What type of edge?

parameter

parameter: gap, etc.

penalty

edge penalty

K

K (see gfpop)

a

a (see gfpop)

min

min (see gfpop)

max

max (see gfpop)

selfReference.angle

The angle of this edge, if it's recursive

selfReference.size

The length of this edge, if it's recursive

hidden

Is this edge hidden?

color

edge color

Value

a dataframe with one more row than edgedf


julianstanley/gfpopgui documentation built on April 16, 2022, 2:58 a.m.