EVOLUTION-MANAGER
Edit File: vertex.shape.pie.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: Using pie charts as vertices in graph plots</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 Pie charts as vertices {igraph}"><tr><td>Pie charts as vertices {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Using pie charts as vertices in graph plots</h2> <h3>Description</h3> <p>More complex vertex images can be used to express addtional information about vertices. E.g. pie charts can be used as vertices, to denote vertex classes, fuzzy classification of vertices, etc. </p> <h3>Details</h3> <p>The vertex shape ‘pie’ makes igraph draw a pie chart for every vertex. There are some extra graphical vertex parameters that specify how the pie charts will look like: </p> <dl> <dt>pie</dt><dd><p>Numeric vector, gives the sizes of the pie slices.</p> </dd> <dt>pie.color</dt><dd><p>A list of color vectors to use for the pies. If it is a list of a single vector, then this is used for all pies. It the color vector is shorter than the number of areas in a pie, then it is recycled.</p> </dd> <dt>pie.border</dt><dd><p>The color of the border line of the pie charts, in the same format as <code>pie.color</code>.</p> </dd> <dt>pie.angle</dt><dd><p>The slope of shading lines, given as an angle in degrees (counter-clockwise).</p> </dd> <dt>pie.density</dt><dd><p>The density of the shading lines, in lines per inch. Non-positive values inhibit the drawing of shading lines.</p> </dd> <dt>pie.lty</dt><dd><p>The line type of the border of the slices.</p> </dd> </dl> <h3>Author(s)</h3> <p> Gabor Csardi <a href="mailto:csardi.gabor@gmail.com">csardi.gabor@gmail.com</a> </p> <h3>See Also</h3> <p><code><a href="plot.common.html">igraph.plotting</a></code>, <code><a href="plot.igraph.html">plot.igraph</a></code> </p> <h3>Examples</h3> <pre> g <- make_ring(10) values <- lapply(1:10, function(x) sample(1:10,3)) if (interactive()) { plot(g, vertex.shape="pie", vertex.pie=values, vertex.pie.color=list(heat.colors(5)), vertex.size=seq(10,30,length.out=10), vertex.label=NA) } </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>