Skip to content

Commit

Permalink
Merge pull request #38 from KristinaMiljkovic/new_fix
Browse files Browse the repository at this point in the history
New fix
  • Loading branch information
gvegayon authored Sep 27, 2024
2 parents 606a5cf 5c371c3 commit ace9918
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions R/diffnet-methods.r
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 656,7 @@ plot_diffnet.default <- function(
#' @return Invisible. A data frame with the calculated coordinates, including:
#' `toa`, `threshold`, and `jit` (a jittered version of `toa`).
#' @author George G. Vega Yon
plot_threshold <- function(graph, expo, ...) UseMethod("plot_threshold")
plot_threshold <- function(graph, expo, vertex.label,...) UseMethod("plot_threshold")

#' @export
#' @rdname plot_threshold
Expand All @@ -679,7 679,9 @@ plot_threshold.diffnet <- function(graph, expo, ...) {
args$toa <- graph$toa
}

do.call(plot_threshold.default, c(list(graph = graph$graph, expo=expo), args))
args$vertex.label <- nodes(graph)
do.call(plot_threshold.default,
c(list(graph = graph$graph, expo=expo), args))
}

#' @export
Expand Down
6 changes: 3 additions & 3 deletions man/plot_threshold.Rd

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

0 comments on commit ace9918

Please sign in to comment.