Skip to content

Commit d38b3dc

Browse files
committed
Merge branch 'main' into pointx
2 parents 4ecabf0 + e427975 commit d38b3dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/plot.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,7 @@ bb2merc = function(x, cls = "ggmap") { # return bbox in the appropriate "web mer
787787
# * shifts linearly within [x, y] from a = x when o = 0 to b = y when o = 1
788788
xy_from_r = function(r, l, o) {
789789
stopifnot(length(r) == 2, l <= 1, l > 0, o >= 0, o <= 1)
790+
r = as.numeric(r)
790791
a = r[1]; b = r[2]
791792
if (o == 1) {
792793
y = b

0 commit comments

Comments
 (0)