Skip to content

Commit

Permalink
fixed #852
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Apr 9, 2024
1 parent 1720d36 commit 016bedd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions R/tmapGridSymbols.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,17 @@ tmapGridSymbols = function(shpTM, dt, gp, bbx, facet_row, facet_col, facet_page,
grobs <- lapply(1:length(gp$shape), function(i) {
shi = gp$shape[[i]]

just = args$just
just = if (is.na(args$just[1])) c(0.5, 0.5) else args$just
jst = if (!is.na(shi) && shi>999) {
js = justLib[[shi-999]]
if (is.na(js[1])) args$just else js
} else args$just
if (!is.na(js[1])) {
js
} else if (!is.na(args$just[1])) {
args$just
} else {
just
}
} else just

justs.x = jst[1]
justs.y = jst[2]
Expand Down

0 comments on commit 016bedd

Please sign in to comment.