EVOLUTION-MANAGER
Edit File: plot.igraph.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: Plotting of 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 plot.igraph {igraph}"><tr><td>plot.igraph {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Plotting of graphs</h2> <h3>Description</h3> <p><code>plot.igraph</code> is able to plot graphs to any R device. It is the non-interactive companion of the <code>tkplot</code> function. </p> <h3>Usage</h3> <pre> ## S3 method for class 'igraph' plot( x, axes = FALSE, add = FALSE, xlim = c(-1, 1), ylim = c(-1, 1), mark.groups = list(), mark.shape = 1/2, mark.col = rainbow(length(mark.groups), alpha = 0.3), mark.border = rainbow(length(mark.groups), alpha = 1), mark.expand = 15, ... ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>The graph to plot.</p> </td></tr> <tr valign="top"><td><code>axes</code></td> <td> <p>Logical, whether to plot axes, defaults to FALSE.</p> </td></tr> <tr valign="top"><td><code>add</code></td> <td> <p>Logical scalar, whether to add the plot to the current device, or delete the device's current contents first.</p> </td></tr> <tr valign="top"><td><code>xlim</code></td> <td> <p>The limits for the horizontal axis, it is unlikely that you want to modify this.</p> </td></tr> <tr valign="top"><td><code>ylim</code></td> <td> <p>The limits for the vertical axis, it is unlikely that you want to modify this.</p> </td></tr> <tr valign="top"><td><code>mark.groups</code></td> <td> <p>A list of vertex id vectors. It is interpreted as a set of vertex groups. Each vertex group is highlighted, by plotting a colored smoothed polygon around and “under” it. See the arguments below to control the look of the polygons.</p> </td></tr> <tr valign="top"><td><code>mark.shape</code></td> <td> <p>A numeric scalar or vector. Controls the smoothness of the vertex group marking polygons. This is basically the ‘shape’ parameter of the <code><a href="../../graphics/html/xspline.html">xspline</a></code> function, its possible values are between -1 and 1. If it is a vector, then a different value is used for the different vertex groups.</p> </td></tr> <tr valign="top"><td><code>mark.col</code></td> <td> <p>A scalar or vector giving the colors of marking the polygons, in any format accepted by <code><a href="../../graphics/html/xspline.html">xspline</a></code>; e.g. numeric color ids, symbolic color names, or colors in RGB.</p> </td></tr> <tr valign="top"><td><code>mark.border</code></td> <td> <p>A scalar or vector giving the colors of the borders of the vertex group marking polygons. If it is <code>NA</code>, then no border is drawn.</p> </td></tr> <tr valign="top"><td><code>mark.expand</code></td> <td> <p>A numeric scalar or vector, the size of the border around the marked vertex groups. It is in the same units as the vertex sizes. If a vector is given, then different values are used for the different vertex groups.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Additional plotting parameters. See <a href="plot.common.html">igraph.plotting</a> for the complete list.</p> </td></tr> </table> <h3>Details</h3> <p>One convenient way to plot graphs is to plot with <code><a href="tkplot.html">tkplot</a></code> first, handtune the placement of the vertices, query the coordinates by the <code><a href="tkplot.html">tk_coords</a></code> function and use them with <code>plot</code> to plot the graph to any R device. </p> <h3>Value</h3> <p>Returns <code>NULL</code>, invisibly. </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> for different layouts, <code><a href="plot.common.html">igraph.plotting</a></code> for the detailed description of the plotting parameters and <code><a href="tkplot.html">tkplot</a></code> and <code><a href="rglplot.html">rglplot</a></code> for other graph plotting functions. </p> <h3>Examples</h3> <pre> g <- make_ring(10) plot(g, layout=layout_with_kk, vertex.color="green") </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>