Description Usage Arguments Details Value Author(s) See Also Examples

`plot.igraph`

is able to plot graphs to any R device. It is the
non-interactive companion of the `tkplot`

function.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 |

`x` |
The graph to plot. |

`axes` |
Logical, whether to plot axes, defaults to FALSE. |

`add` |
Logical scalar, whether to add the plot to the current device, or delete the device's current contents first. |

`xlim` |
The limits for the horizontal axis, it is unlikely that you want to modify this. |

`ylim` |
The limits for the vertical axis, it is unlikely that you want to modify this. |

`mark.groups` |
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. |

`mark.shape` |
A numeric scalar or vector. Controls the smoothness of the
vertex group marking polygons. This is basically the ‘shape’
parameter of the |

`mark.col` |
A scalar or vector giving the colors of marking the
polygons, in any format accepted by |

`mark.border` |
A scalar or vector giving the colors of the borders of
the vertex group marking polygons. If it is |

`mark.expand` |
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. |

`...` |
Additional plotting parameters. See igraph.plotting for the complete list. |

One convenient way to plot graphs is to plot with `tkplot`

first, handtune the placement of the vertices, query the coordinates by the
`tk_coords`

function and use them with `plot`

to
plot the graph to any R device.

Returns `NULL`

, invisibly.

Gabor Csardi csardi.gabor@gmail.com

`layout`

for different layouts,
`igraph.plotting`

for the detailed description of the plotting
parameters and `tkplot`

and `rglplot`

for other
graph plotting functions.

1 2 | ```
g <- make_ring(10)
plot(g, layout=layout_with_kk, vertex.color="green")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.