Produce a vector of suitable vector colors depending on the vertex' state.
1 2 3 4 5 | nice_vertex_label_colors(
graph,
previous = NULL,
colors = c("black", "darkgray", wes_palette("Royal1")[2])
)
|
graph |
The spgraph object. |
previous |
The spgraph object of the last iteration. If provided, changed min_dists will be highlighted. |
colors |
A |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.