color-scale

0th

Percentile

Color

Scale color by node size.

Usage
sg_scale_color(sg, pal)
Arguments
sg

An object of class sigmajsas intatiated by sigmajs.

pal

Vector of color.

Aliases
  • color-scale
  • sg_scale_color
Examples
# NOT RUN {
nodes <- sg_make_nodes() 
edges <- sg_make_edges(nodes, 20)

sigmajs() %>% 
  sg_nodes(nodes, id, size) %>% 
  sg_scale_color(pal = c("red", "blue"))

# }
Documentation reproduced from package sigmajs, version 0.1.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.