Skip to contents

This is a layout modifier function, and it can be used to calculate the layout separately for each component of the graph.

Usage

component_wise(merge_method = "dla")

Arguments

merge_method

Merging algorithm, the method argument of merge_coords().

Examples

g <- make_ring(10) + make_ring(10)
g %>%
  add_layout_(in_circle(), component_wise()) %>%
  plot()