diff --git a/R/utils.R b/R/utils.R index 94b2148..ab7b198 100644 --- a/R/utils.R +++ b/R/utils.R @@ -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;