Description Usage Arguments Value Examples
Interactive arc-diagram
1 2 3 4 5 6 7 8 | arcd(links, nodes, link.source = "source", link.target = "target",
link.side = NULL, link.color = NULL, link.value = "value",
node.value = "value", node.label = "label", node.ID = "reindex",
node.color = NULL, scale = 0.5, max.node.size = 40,
min.node.size = 2, max.link.width = 30, min.link.width = 0.5,
link.min.value = NULL, link.value.prefix = "jumps",
node.value.prefix = "landings", remove.jump.size = NULL,
orientation = "h", show.start = FALSE)
|
links |
a data-frame of links, contains three, sources and targets (populated with numeric node coordinates that serve as node IDs) and values of links. May contain other metadata |
nodes |
a data-frame of nodes, contains a column of numeric node coordinates (node IDs) that match those in the source and target columns in |
link.source |
name of the source column in |
link.target |
name of the target column in |
link.side |
name of the column in |
link.color |
name of the column in |
link.value |
name of the column in |
node.value |
name of the column in |
node.label |
name of the column in |
node.ID |
name of the column in |
node.color |
name of the column in |
scale |
controls the height of looping links compared to their length (links are semi-ellipses). Will not have visible effect if plotly is free to set plot scale |
max.node.size |
maximum node size |
min.node.size |
minimum node size |
max.link.width |
maximum link width |
min.link.width |
minimum link width |
link.min.value |
minimum link value to retain. Links with values below this will be ignored. The exception is if ALL links have values below |
link.value.prefix |
prefix to use in link hover labels |
node.value.prefix |
prefix to use in node hover labels |
remove.jump.size |
a value or a vector of values. Links with jump size (target minus source) in |
orientation |
if 'h', the diagram will be horizontal, otherwise vertical. Only the first character is checked, case-insensitive. |
show.start |
logical, whether or not to separate course start from outside by a dashed line. |
a plotly object
1 | #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.