Skip to content

Commit

Permalink
removed midpoint from being displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed Dec 15, 2023
1 parent 8090550 commit 8f6dcef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ print.netrankr_interval <- function(x, ...) {
#' @author David Schoch
#' @export
plot.netrankr_interval <- function(x, cent_scores = NULL, cent_cols = NULL, ties.method = "min", ...) {
x$mid_point <- (x$max_rank - x$min_rank) / 2
x$mid_point <- (x$max_rank + x$min_rank) / 2
ord <- order(x$mid_point)
if (!is.null(cent_scores)) {
m <- ncol(cent_scores)
Expand All @@ -207,7 +207,7 @@ plot.netrankr_interval <- function(x, cent_scores = NULL, cent_cols = NULL, ties
}
plot(
x = factor(x$node, levels = x$node[ord]),
y = x$mid_point, pch = 0, cex = 0,
y = rep(NA, nrow(x)), pch = 0,
ylim = c(0, nrow(x)),
ylab = "ranks",
xlab = "",
Expand Down
Binary file modified man/figures/README-partial-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8f6dcef

Please sign in to comment.