EVOLUTION-MANAGER
Edit File: curve_multiple.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: Optimal edge curvature when plotting graphs</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 curve_multiple {igraph}"><tr><td>curve_multiple {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Optimal edge curvature when plotting graphs</h2> <h3>Description</h3> <p>If graphs have multiple edges, then drawing them as straight lines does not show them when plotting the graphs; they will be on top of each other. One solution is to bend the edges, with diffenent curvature, so that all of them are visible. </p> <h3>Usage</h3> <pre> curve_multiple(graph, start = 0.5) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>graph</code></td> <td> <p>The input graph.</p> </td></tr> <tr valign="top"><td><code>start</code></td> <td> <p>The curvature at the two extreme edges. All edges will have a curvature between <code>-start</code> and <code>start</code>, spaced equally.</p> </td></tr> </table> <h3>Details</h3> <p><code>curve_multiple</code> calculates the optimal <code>edge.curved</code> vector for plotting a graph with multiple edges, so that all edges are visible. </p> <h3>Value</h3> <p>A numeric vector, its length is the number of edges in the 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="plot.common.html">igraph.plotting</a></code> for all plotting parameters, <code><a href="plot.igraph.html">plot.igraph</a></code>, <code><a href="tkplot.html">tkplot</a></code> and <code><a href="rglplot.html">rglplot</a></code> for plotting functions. </p> <h3>Examples</h3> <pre> g <- graph( c(0,1,1,0,1,2,1,3,1,3,1,3, 2,3,2,3,2,3,2,3,0,1)+1 ) curve_multiple(g) ## Not run: set.seed(42) plot(g) ## 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>