Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

add_layout_

Add layout to graph


Description

Add layout to graph

Usage

add_layout_(graph, ..., overwrite = TRUE)

Arguments

graph

The input graph.

...

Additional arguments are passed to layout_.

overwrite

Whether to overwrite the layout of the graph, if it already has one.

Value

The input graph, with the layout added.

See Also

layout_ for a description of the layout API.

Examples

(make_star(11) + make_star(11)) %>%
  add_layout_(as_star(), component_wise()) %>%
  plot()

igraph

Network Analysis and Visualization

v1.2.10
GPL (>= 2)
Authors
See AUTHORS file.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.