View source: R/fct_visNetwork_helpers.R
add_edge | R Documentation |
Add a new edge to a visNetwork edge dataframe
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" )
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 |
a dataframe with one more row than edgedf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.