Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Jun 27, 2024
1 parent 6249613 commit db9dee0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion R/netplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,12 @@ nplot.matrix <- function(
edgelist
) {

x <- igraph::graph_from_adjacency_matrix(x)
if (missing(layout))
layout <- igraph::layout_nicely(x)

nplot.igraph(
x = igraph::graph_from_adjacency_matrix(x),
x = x,
layout = layout,
vertex.size = vertex.size,
bg.col = bg.col,
Expand Down
2 changes: 1 addition & 1 deletion man/nplot_base.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit db9dee0

Please sign in to comment.