Skip to content

Commit

Permalink
fixed small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Aug 29, 2024
1 parent 133f559 commit 9bcd02d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tmapScaleIntervals.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tmapScaleIntervals = function(x1, scale, legend, chart, o, aes, layer, layer_arg

with(scale, {
if (anyDuplicated(breaks)) stop("breaks specified in the ", aes, ".scale scaling function contains duplicates.", call. = FALSE)
if (length(breaks) < 2) stop("breaks should contain at least 2 numbers", call. = FALSE)
if (!is.null(breaks) && length(breaks) < 2) stop("breaks should contain at least 2 numbers", call. = FALSE)

udiv = identical(use_div(breaks, midpoint), TRUE)

Expand Down

0 comments on commit 9bcd02d

Please sign in to comment.