EVOLUTION-MANAGER
Edit File: sequential_pal.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Sequential palette</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for sequential_pal {igraph}"><tr><td>sequential_pal {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Sequential palette</h2> <h3>Description</h3> <p>This is the ‘OrRd’ palette from <a href="https://colorbrewer2.org/">https://colorbrewer2.org/</a>. It has at most nine colors. </p> <h3>Usage</h3> <pre> sequential_pal(n) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>n</code></td> <td> <p>The number of colors in the palette. The maximum is nine currently.</p> </td></tr> </table> <h3>Details</h3> <p>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. </p> <h3>Value</h3> <p>A character vector of RGB color codes. </p> <h3>See Also</h3> <p>Other palettes: <code><a href="categorical_pal.html">categorical_pal</a>()</code>, <code><a href="diverging_pal.html">diverging_pal</a>()</code>, <code><a href="r_pal.html">r_pal</a>()</code> </p> <h3>Examples</h3> <pre> ## Not run: 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) ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>