无法设置ggmap边界

时间:2017-12-27 18:55:06

标签: r

我是R的新手,我正在尝试在地图上绘制坐标。我的坐标示例:

Longitude  Latitude
-0.113767  51.517372
-0.098062  51.517583
-0.098062  51.517584
-0.098062. 51.517585
-0.097053. 51.518266
-0.097601  51.520707
-0.098062  51.517588
-0.097601  51.520709
-0.097601  51.5207010
-0.096348. 51.5154711
-0.097562  51.5188612
-0.097053  51.5182613
-0.097053  51.5182614
-0.097053. 51.5182615
-0.097053. 51.5182616

这些是我的代码:

Tryggmap <- get_map("London, UK", maptype = "terrain", zoom = 14)
ggmap(Tryggmap) + geom_point(
  data = TryTry,
  aes(x = Longitude, y = Latitude),
  color = "red",
  size = 1
) + scale_x_continuous(limits = c(-0.13, -0.07), expand = c(0, 0)) + 
  scale_y_continuous(limits = c(51.50, 51.53), expand = c(0, 0))

但它产生了类似的东西。

enter image description here

0 个答案:

没有答案