#' @export
addOrder2DRN <- function(rivs, graph) {
rivs@data$ order <- E(graph)$order
rivs@data$ width <- E(graph)$width
rivs@data$ color <- E(graph)$color
# rivs@data $ start <- ends(graph, E(graph))[,1]
# rivs@data $ end <- ends(graph, E(graph))[,2]
rivs <- addUpDownNodes(rivs)
rivs
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.