This is the ‘OrRd’ palette from https://colorbrewer2.org/. It has at most nine colors.
Details
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.
See also
Other palettes:
categorical_pal()
,
diverging_pal()
,
r_pal()
Examples
library(igraphdata)
data(karate)
karate <- karate %>%
add_layout_(with_kk()) %>%
set_vertex_attr("size", value = 10)
#> This graph was created by an old(er) igraph version.
#> Call upgrade_graph() on it to use with the current igraph version
#> For now we convert it on the fly...
V(karate)$color <- scales::dscale(degree(karate) %>% cut(5), sequential_pal)
plot(karate)