diff --git a/R/plot.R b/R/plot.R index 855fdec3ff3..4b29cb38cba 100644 --- a/R/plot.R +++ b/R/plot.R @@ -636,7 +636,7 @@ plot.igraph <- function( adjusted_loop_size <- rep(loop.size, length(loops.v)) - r_offset <- 0 + r_offset <- vertex.size[loops.v] xx0 <- layout[loops.v, 1] + cos(la) * r_offset yy0 <- layout[loops.v, 2] + sin(la) * r_offset diff --git a/tests/testthat/_snaps/plot/basic-graph-layout-1.svg b/tests/testthat/_snaps/plot/basic-graph-layout-1.svg index 447b8f3955e..089c3c6e71f 100644 --- a/tests/testthat/_snaps/plot/basic-graph-layout-1.svg +++ b/tests/testthat/_snaps/plot/basic-graph-layout-1.svg @@ -25,7 +25,7 @@ - + diff --git a/tests/testthat/_snaps/plot/basic-graph-layout-2.svg b/tests/testthat/_snaps/plot/basic-graph-layout-2.svg index 994da3fe66c..d196b2c6456 100644 --- a/tests/testthat/_snaps/plot/basic-graph-layout-2.svg +++ b/tests/testthat/_snaps/plot/basic-graph-layout-2.svg @@ -25,7 +25,7 @@ - + diff --git a/tests/testthat/_snaps/plot/basic-graph-spheres.svg b/tests/testthat/_snaps/plot/basic-graph-spheres.svg index 9e047bf05d8..0b390c6c95a 100644 --- a/tests/testthat/_snaps/plot/basic-graph-spheres.svg +++ b/tests/testthat/_snaps/plot/basic-graph-spheres.svg @@ -25,7 +25,7 @@ - + diff --git a/tests/testthat/_snaps/plot/loop-graph.svg b/tests/testthat/_snaps/plot/loop-graph.svg index 8f6af5eaa43..dbc868e079c 100644 --- a/tests/testthat/_snaps/plot/loop-graph.svg +++ b/tests/testthat/_snaps/plot/loop-graph.svg @@ -25,8 +25,8 @@ - -green + +green red diff --git a/tests/testthat/_snaps/plot/multi-loops-many.svg b/tests/testthat/_snaps/plot/multi-loops-many.svg index c99ed95be4b..9dd799e40f1 100644 --- a/tests/testthat/_snaps/plot/multi-loops-many.svg +++ b/tests/testthat/_snaps/plot/multi-loops-many.svg @@ -25,13 +25,13 @@ - - - - - - - + + + + + + + diff --git a/tests/testthat/_snaps/plot/multi-loops-triangle.svg b/tests/testthat/_snaps/plot/multi-loops-triangle.svg index 701ee9df382..423a6e806c1 100644 --- a/tests/testthat/_snaps/plot/multi-loops-triangle.svg +++ b/tests/testthat/_snaps/plot/multi-loops-triangle.svg @@ -25,10 +25,10 @@ - - - - + + + +