This is the
- The number of colors in the palette. The maximum is nine currently.
Use this palette, if vertex colors mark some ordinal quantity, e.g. some centrality measure, or some ordinal vertex covariate, like the age of people, or their seniority level.
- A character vector of RGB color codes.
library(igraphdata) data(karate) karate <- karate %>% add_layout_(with_kk()) %>% set_vertex_attr("size", value = 10) V(karate)$color <- scales::dscale(degree(karate) %>% cut(5), sequential_pal) plot(karate)