Loading libraries
## Warning: package 'ggplot2' was built under R version 4.3.2
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr 1.1.3 ✔ readr 2.1.4
## ✔ forcats 1.0.0 ✔ stringr 1.5.0
## ✔ ggplot2 3.4.4 ✔ tibble 3.2.1
## ✔ lubridate 1.9.3 ✔ tidyr 1.3.0
## ✔ purrr 1.0.2
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag() masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
## Warning: package 'sf' was built under R version 4.3.3
## Linking to GEOS 3.11.2, GDAL 3.8.2, PROJ 9.3.1; sf_use_s2() is TRUE
## Warning: package 'leaflet' was built under R version 4.3.3
## Warning: package 'rnaturalearthdata' was built under R version 4.3.3
## Warning: package 'lwgeom' was built under R version 4.3.3
## Linking to liblwgeom 3.0.0beta1 r16016, GEOS 3.11.2, PROJ 9.3.1
##
## Attaching package: 'lwgeom'
##
## The following object is masked from 'package:sf':
##
## st_perimeter
## Warning: package 'gapminder' was built under R version 4.3.3
Cities
Hops
Selecting only the start and return locations (order: long,
lat)
end_pointa into LINESTRINGs
combining end_points with the original data of the journeys
Shapes of the World
Plotting
## Assuming "lon" and "lat" are longitude and latitude, respectively