Skip to content

Commit

Permalink
fix hunter plot for unidirectional data
Browse files Browse the repository at this point in the history
  • Loading branch information
willgryan committed Jul 13, 2023
1 parent a5b54e8 commit 1b2b51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/PAVER_hunter_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ PAVER_hunter_plot <- function(PAVER_result, unit=NULL) {
} else {
at = c(min, max)
labels = c(round(min, 2), round(max, 2))
if(levels(data$Direction) == "Up") {
if(levels(data$Direction) == "+") {
col_fun = circlize::colorRamp2(c(min, max), c("white", "red"))
} else {
col_fun = circlize::colorRamp2(c(min, max), c("white", "blue"))
Expand Down

0 comments on commit 1b2b51c

Please sign in to comment.