Skip to content

Commit e427975

Browse files
committed
handle e.g. POSIXct values
1 parent 732525f commit e427975

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
@@ -786,6 +786,7 @@ bb2merc = function(x, cls = "ggmap") { # return bbox in the appropriate "web mer
786786
# * shifts linearly within [x, y] from a = x when o = 0 to b = y when o = 1
787787
xy_from_r = function(r, l, o) {
788788
stopifnot(length(r) == 2, l <= 1, l > 0, o >= 0, o <= 1)
789+
r = as.numeric(r)
789790
a = r[1]; b = r[2]
790791
if (o == 1) {
791792
y = b

0 commit comments

Comments
 (0)