Skip to content

Commit

Permalink
fixes #1475
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed May 3, 2024
1 parent ca73463 commit 3ba48be
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions R/plot_let.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,14 @@ baselayers <- function(tiles, wrap=TRUE) {
out <- list(v=v, leg=list())

if (is.null(type)) type <- ""
if (type == "continuous") type <- "interval"
if ((!is.numeric(v)) || (length(unique(v)) < 11)) {
type <- "classes"
if (type == "continuous") {
type <- "interval"
} else if (type == "") {
type <- "interval"
if ((!is.numeric(v)) || (length(unique(v)) < 11)) {
type <- "classes"
} else {
type <- "interval"
}
} else {
type <- match.arg(type, c("interval", "classes"))
}
Expand Down

0 comments on commit 3ba48be

Please sign in to comment.