This function generates edge and vertex colors.
1 2 3 | createColorPalette(edgelist = net.igr, edge.color.index = "weight",
vertex.color.index = "tokenCount", color.palette = c("gold",
"tomato"), alpha.range = c(0.5, 1), vertex.edge = "edge")
|
edgelist |
Default = net.igr; an igraph-type graph object, from charDf_to_edgelist(). |
edge.color.index |
Character string. Which edge value should be used to assign colors to edges? Defaults to "weight". |
vertex.color.index |
Character string. Which vertex value should used to assign colors to vertices? Defaults to "tokenCount". |
color.palette |
Length-two character vector. Default = c("gold", "tomato"). |
alpha.range |
Length-two numeric vector 0 <= x <= 1. Default = c(.5, 1). Sets alpha (transparency) for edges. |
vertex.edge |
Character string "vertex" or "edge". Return values for edges or vertices? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.