Skip to content

Commit

Permalink
fix error in color rescaling function
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiaos committed Feb 28, 2019
1 parent ca2832f commit a0662b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ computeNodeColor <- function(maxVal, minVal, val){
maxColor <- 0.5;
minColor <- 0;
} else {
larger = Math.max(maxVal, Math.abs(minVal));
larger = max(maxVal, abs(minVal));
maxVal <- larger;
minVal <- -1.0*larger;
maxColor <- 1;
Expand Down

0 comments on commit a0662b9

Please sign in to comment.