I have a vector of map tiles that I would like to plot in ggplot.
For instance I would like to place this image:
download.file("http://tile.stamen.com/toner/14/8601/5873.png", "tile_8601_5873.png", mode = "wb")
Into the "fill" of tile1:
data.frame(x = c(8601, 8602), y = c(5873, 5873), tile = c('tile1', 'tile2')) %>%
ggplot(aes(x = x, y= y, fill = tile)) +
geom_tile() +
coord_equal()
This is a minimal example of the output I'm looking for—although I actually have dozens of tiles to which I'm looking to overlap tiles.