Skip to content

Commit db9dee0

Browse files
committed
fixing tests
1 parent 6249613 commit db9dee0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

R/netplot.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,12 @@ nplot.matrix <- function(
323323
edgelist
324324
) {
325325

326+
x <- igraph::graph_from_adjacency_matrix(x)
327+
if (missing(layout))
328+
layout <- igraph::layout_nicely(x)
329+
326330
nplot.igraph(
327-
x = igraph::graph_from_adjacency_matrix(x),
331+
x = x,
328332
layout = layout,
329333
vertex.size = vertex.size,
330334
bg.col = bg.col,

man/nplot_base.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)