Skip to content

Commit

Permalink
fixed #832
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Feb 9, 2024
1 parent d5ff7c7 commit 975d14b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/tmapGrid_layers.R
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ tmapGridRaster <- function(shpTM, dt, gp, bbx, facet_row, facet_col, facet_page,

sel = which(tmapID %in% tid)
tid2 = tmapID[sel]

color[sel] = dt$col[match(tid2, dt$tmapID__)]
dt = merge_alpha(dt, name = "col")
color[sel] = dt$ca[match(tid2, dt$tmapID__)]
}


Expand Down
4 changes: 2 additions & 2 deletions R/tmapScale_.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ tmapScaleAuto = function(x1, scale, legend, o, aes, layer, layer_args, sortRev,
} else if (attr(cls, "unique")) {
if ("num" %in% cls) {
sc = "ordinal"
message("The visual variable \"", aes, "\" of the layer, \", layer", "\" contains a unique value. Therefore a discrete scale is applied (tm_scale_discrete).")
message("The visual variable \"", aes, "\" of the layer \"", layer, "\" contains a unique value. Therefore a discrete scale is applied (tm_scale_discrete).")
} else {
sc = "categorical"
message("The visual variable \"", aes, "\" of the layer, \", layer", "\" contains a unique value. Therefore a categorical scale is applied (tm_scale_categorical).")
message("The visual variable \"", aes, "\" of the layer \"", layer, "\" contains a unique value. Therefore a categorical scale is applied (tm_scale_categorical).")
}


Expand Down

0 comments on commit 975d14b

Please sign in to comment.