EVOLUTION-MANAGER
Edit File: layout_as_star.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: Generate coordinates to place the vertices of a graph in a...</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 layout_as_star {igraph}"><tr><td>layout_as_star {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Generate coordinates to place the vertices of a graph in a star-shape</h2> <h3>Description</h3> <p>A simple layout generator, that places one vertex in the center of a circle and the rest of the vertices equidistantly on the perimeter. </p> <h3>Usage</h3> <pre> layout_as_star(graph, center = V(graph)[1], order = NULL) as_star(...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>graph</code></td> <td> <p>The graph to layout.</p> </td></tr> <tr valign="top"><td><code>center</code></td> <td> <p>The id of the vertex to put in the center. By default it is the first vertex.</p> </td></tr> <tr valign="top"><td><code>order</code></td> <td> <p>Numeric vector, the order of the vertices along the perimeter. The default ordering is given by the vertex ids.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Arguments to pass to <code>layout_as_star</code>.</p> </td></tr> </table> <h3>Details</h3> <p>It is possible to choose the vertex that will be in the center, and the order of the vertices can be also given. </p> <h3>Value</h3> <p>A matrix with two columns and as many rows as the number of vertices in the input graph. </p> <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="layout_.html">layout</a></code> and <code><a href="layout_with_drl.html">layout.drl</a></code> for other layout algorithms, <code><a href="plot.igraph.html">plot.igraph</a></code> and <code><a href="tkplot.html">tkplot</a></code> on how to plot graphs and <code><a href="make_star.html">star</a></code> on how to create ring graphs. </p> <p>Other graph layouts: <code><a href="add_layout_.html">add_layout_</a>()</code>, <code><a href="component_wise.html">component_wise</a>()</code>, <code><a href="layout_as_bipartite.html">layout_as_bipartite</a>()</code>, <code><a href="layout_as_tree.html">layout_as_tree</a>()</code>, <code><a href="layout_in_circle.html">layout_in_circle</a>()</code>, <code><a href="layout_nicely.html">layout_nicely</a>()</code>, <code><a href="layout_on_grid.html">layout_on_grid</a>()</code>, <code><a href="layout_on_sphere.html">layout_on_sphere</a>()</code>, <code><a href="layout_randomly.html">layout_randomly</a>()</code>, <code><a href="layout_with_dh.html">layout_with_dh</a>()</code>, <code><a href="layout_with_fr.html">layout_with_fr</a>()</code>, <code><a href="layout_with_gem.html">layout_with_gem</a>()</code>, <code><a href="layout_with_graphopt.html">layout_with_graphopt</a>()</code>, <code><a href="layout_with_kk.html">layout_with_kk</a>()</code>, <code><a href="layout_with_lgl.html">layout_with_lgl</a>()</code>, <code><a href="layout_with_mds.html">layout_with_mds</a>()</code>, <code><a href="layout_with_sugiyama.html">layout_with_sugiyama</a>()</code>, <code><a href="layout_.html">layout_</a>()</code>, <code><a href="merge_coords.html">merge_coords</a>()</code>, <code><a href="norm_coords.html">norm_coords</a>()</code>, <code><a href="normalize.html">normalize</a>()</code> </p> <h3>Examples</h3> <pre> g <- make_star(10) layout_as_star(g) ## Alternative form layout_(g, as_star()) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>