【发布时间】:2012-09-19 23:17:00
【问题描述】:
我想从网上阅读一张图片。例如
http://api.altmetric.com/donut/502878_64x64.png
并将其插入ggplot的右上角
df <- data.frame(x=1:10, y=sample(1:100,10))
# a fake plot to try it on.
ggplot(df, aes(x,y)) + geom_point(size = 2)
我该怎么做?
【问题讨论】:
-
annotation_raster。查看示例here -
谢谢@mnel!我仍然需要能够从 URL 中读取此图像