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

Place the vertices on the plane, or in the 3d space, based on a phyisical model of springs.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |

`graph` |
The input graph. Edge directions are ignored. |

`coords` |
If not |

`dim` |
Integer scalar, 2 or 3, the dimension of the layout. Two dimensional layouts are places on a plane, three dimensional ones in the 3d space. |

`maxiter` |
The maximum number of iterations to perform. The algorithm
might terminate earlier, see the |

`epsilon` |
Numeric scalar, the algorithm terminates, if the maximal
delta is less than this. (See the reference below for what delta means.) If
you set this to zero, then the function always performs |

`kkconst` |
Numeric scalar, the Kamada-Kawai vertex attraction constant. Typical (and default) value is the number of vertices. |

`weights` |
Edge weights, larger values will result longer edges.
Note that this is opposite to |

`minx` |
If not |

`maxx` |
Similar to |

`miny` |
Similar to |

`maxy` |
Similar to |

`minz` |
Similar to |

`maxz` |
Similar to |

`niter, sigma, initemp, coolexp` |
These arguments are not supported from igraph version 0.8.0 and are ignored (with a warning). |

`start` |
Deprecated synonym for |

`...` |
Passed to |

See the referenced paper below for the details of the algorithm.

This function was rewritten from scratch in igraph version 0.8.0 and it follows truthfully the original publication by Kamada and Kawai now.

A numeric matrix with two (dim=2) or three (dim=3) columns, and as many rows as the number of vertices, the x, y and potentially z coordinates of the vertices.

Gabor Csardi csardi.gabor@gmail.com

Kamada, T. and Kawai, S.: An Algorithm for Drawing General
Undirected Graphs. *Information Processing Letters*, 31/1, 7–15, 1989.

`layout_with_drl`

, `plot.igraph`

,
`tkplot`

Other graph layouts:
`add_layout_()`

,
`component_wise()`

,
`layout_as_bipartite()`

,
`layout_as_star()`

,
`layout_as_tree()`

,
`layout_in_circle()`

,
`layout_nicely()`

,
`layout_on_grid()`

,
`layout_on_sphere()`

,
`layout_randomly()`

,
`layout_with_dh()`

,
`layout_with_fr()`

,
`layout_with_gem()`

,
`layout_with_graphopt()`

,
`layout_with_lgl()`

,
`layout_with_mds()`

,
`layout_with_sugiyama()`

,
`layout_()`

,
`merge_coords()`

,
`norm_coords()`

,
`normalize()`

1 2 3 |

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.