Skip to content

Commit 631295e

Browse files
committed
properly use format in degreeLabelsXX; #829
1 parent 01f31a0 commit 631295e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/graticule.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ trim_bb = function(bb = c(-180, -90, 180, 90), margin, wrap=c(-180,180)) {
217217
degreeLabelsNS = function(x) {
218218
pos = sign(x) + 2
219219
dir = c("*S", "", "*N")
220-
paste0(abs(x), "*degree", dir[pos])
220+
paste0("`", format(abs(x)), "`", "*degree", dir[pos])
221221
}
222222

223223
degreeLabelsEW = function(x) {
@@ -228,5 +228,5 @@ degreeLabelsEW = function(x) {
228228
if (any(x == 180))
229229
pos[x == 180] = 2
230230
dir = c("*W", "", "*E")
231-
paste0(abs(x), "*degree", dir[pos])
231+
paste0("`", format(abs(x)), "`", "*degree", dir[pos])
232232
}

0 commit comments

Comments
 (0)