Skip to content

Commit

Permalink
bug fix, changed OR to AND otherwise constrain is irrelevant.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkhattak committed Jul 17, 2024
1 parent 7a27e68 commit 6b63ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/custom_function.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ distribution = function(value, coverage_fraction, breaks = 10, constrain = FALSE
x1 = value*coverage_fraction
x1 = x1[!is.na(x1)]

if(constrain | length(breaks) > 1){
if(constrain & length(breaks) > 1){

breaks_tmp = c(breaks[1],breaks[2])

Expand Down

0 comments on commit 6b63ac3

Please sign in to comment.