Description Usage Arguments Value Author(s) Examples
View source: R/set_color_multilevel.R
Set vertices and edges colors for a multilevel network. Default set to blue (higher level) and red (lower level).
1 2 | set_color_multilevel(x, color.true = "blue", color.false = "red",
V.alpha = 0.7, E.alpha = 0.7)
|
x |
a graph object. Must be a multilevel network. |
color.true |
a character. The color to be chosen for the higher
level (attribute |
color.false |
a character. The color to be chosen for the lower
level (attribute |
V.alpha |
numeric. The factor modifying the opacity alpha for the vertices; typically in [0,1]. |
E.alpha |
numeric. The factor modifying the opacity alpha for the edges; typically in [0,1]. |
A graph object. A multilevel network with an added color
vertex attribute vector and a color
edge attribute vector.
Neylson Crepalde, neylsoncrepalde@gmail.com
1 2 3 4 5 | # Check whether a graph is multilevel
is_multilevel(linked_sim)
# Set the colors for each level
linked_sim <- set_color_multilevel(linked_sim)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.