Skip to content

Commit

Permalink
Remove use of jitter() in get_extreme_value()
Browse files Browse the repository at this point in the history
  • Loading branch information
rich-iannone committed Dec 1, 2023
1 parent 36fc9f4 commit 4c81264
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions R/utils_plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -1463,10 +1463,6 @@ get_extreme_value <- function(..., stat = c("max", "min")) {

value_list_vec <- unlist(value_list)

if (length(unique(value_list_vec)) == 1) {
value_list_vec <- jitter(value_list_vec, amount = 1 / 100000)
}

if (stat == "max") {
extreme_val <- max(value_list_vec, na.rm = TRUE)
} else {
Expand Down

0 comments on commit 4c81264

Please sign in to comment.