<iframe src="https://exploratory.io/viz/hideaki/40f174bc53f6?embed=true" frameborder="0" width="100%" height="100%" > </iframe>
If you want to visit multiple World Heritage Sites together at once, here are where you should go. Calcurated distances between combinations of 2015 world heritage sites with geosphere package to showcase how to calculate 'great-circle-distance' on the Earth. geosphere: https://cran.r-project.org/web/packages/geosphere/index.html The result in column "distance" is in meter. Here is the definition of the wrapper function I used in this data wrangling steps.
get_geo_distance = function(long1, lat1, long2, lat2, units = "m") { loadNamespace("purrr") loadNamespace("geosphere") longlat1 = purrr::map2(long1, lat1, function(x,y) c(x,y)) longlat2 = purrr::map2(long2, lat2, function(x,y) c(x,y)) distance_list = purrr::map2(longlat1, longlat2, function(x,y) geosphere::distHaversine(x, y)) distance_m = exploratory::list_extract(distance_list, position = 1) if (units == "km") { distance = distance_m / 1000.0; } else if (units == "miles") { distance = distance_m / 1609.344 } else { distance = distance_m } distance }