Names: Dario Bonaretti
From: Nova Southeaster University / University of Pavia
I'm working with facebook data—they are providing a lot of data summarized by tile/quadkeys so I believe this will be help many others.
I can plot tiles in ggplot using tile coordinates, but I struggle to add a map layer, or to map raster tiles to the fill of geom_tiles.
I know there are solutions there like ggmap. But I'm looking for an approach that would allow selecting specific tiles and then plot map/geographical references underneath.
Is the data publicly available? I might be able to help you if I had a sample of the data, but I can't figure it just from your description (I am a man of next to zero imagination).
In general {ggplot2} has the benefit of being familiar to just about every R user, but it sort of struggles with displaying rasters; in this area {tmap} often delivers better. If interactivity is desired, especially in combination with a basemap layer, it is hard to beat {leaflet} and friends.
@jlacko thanks for your answer. Here are some more details about my query. The dataset I have looks like the below (I've derived x_tile and y_tile, hopefully, that's correct)
I'm trying to plot those tiles on a map. With ggplot2, I can plot the tiles but I'm not sure how to add the map. With leaflet, I'm not sure how to add tiles on a map. Any input on that?