I installed R version 3.3.2, and I have a problem with this problem. I get the following warning messages:
1: panel.margindeprecated. Instead, use property panel.spacing
2: Deleted 28 rows containing missing values (geom_path).
Code example:
require(ggmap)
require(ggplot2)
from <- 'London'
to <- 'Paris'
route_df <- route(from, to, structure = 'route', mode = 'driving')
qmap('London', zoom = 10) +
geom_path(
aes(x = lon, y = lat), colour = 'red', size = 1.5,
data = route_df, lineend = 'round')
mapdist(from, to)
Any suggestions?
source
share