setEdgeAttributes | R Documentation |
Assign the supplied edge attribute values to the graph structure contained in the browser.
setEdgeAttributes(
session,
attributeName,
sourceNodes,
targetNodes,
interactions,
values
)
session |
a Shiny Server session object. |
attributeName |
character string, the attribute to update. |
sourceNodes |
a character vector, the names of the source nodes of the edges |
targetNodes |
a character vector, the names of the target nodes of the edgees |
interactions |
a character vector, further identifying the specific edge whose attributes are updated. |
values |
a character, logical or numeric vector, the new values. |
Nothing
## Not run:
setEdgeAttributes(session,
attributeName = "score",
sourceNodes = c("A", "B", "C"),
targetNodes = c("D", "E", "A"),
interactions = c("promotes", "promotes", "inhibits"),
values = new.scores
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.