小编she*_*ine的帖子

如何将历史 Google 地球图像导入 R

使用 R,可以从 Google 地图 API 查询指定位置的最新图像,例如

library(ggmap)
mal <- get_map('Malabo', zoom = 12, maptype = 'satellite')
ggmap(mal)
Run Code Online (Sandbox Code Playgroud)

API 是否允许/支持从用户指定日期查询历史图像?。如果是:

-这怎么能在 R 中完成?

- 如果在 R 中无法完成,是否还有其他方法/工具可以做到?

非常感谢。

google-maps r rgooglemaps ggmap

5
推荐指数
0
解决办法
900
查看次数

更改ggplot2中条带文本背景的高度不能按预期工作

###Load libraries

library(ggplot2)
library(gtable)

###Build plot

d <- ggplot(mtcars, aes(x=gear)) + 
            geom_bar(aes(y=gear), stat="identity", position="dodge") +
            facet_wrap(~cyl)

###Change height of strip text

g <- ggplotGrob(d)
g$heights[[3]] = unit(2,"in")
grid.newpage()
grid.draw(g)
Run Code Online (Sandbox Code Playgroud)

获得的结果(ggplot2_2.0.0)

在此输入图像描述

预期结果(ggplot2_1.0.1)

在此输入图像描述

中土世界到底发生了什么?

r ggplot2 gtable

5
推荐指数
1
解决办法
487
查看次数

标签 统计

r ×2

ggmap ×1

ggplot2 ×1

google-maps ×1

gtable ×1

rgooglemaps ×1