Spatial Visualization with ggmap R package
ggmap, which is an R package built to visualize with map, is very similar to ggplot2. And its output is ‘ggplot’ class, which means it also support layered visualization just like ggplot2. I will demonstrate with two examples “Crimes in San Fransisco” and “Taxi in Porto”. The data of both examples are taken from kaggle. some basics of ggmap: get_map: is the function to download map from source (e.g. google/openstreetmap). some parameters can play with: location: the longitude and the...