How Do I connect two coordinates with a line using Leaflet in R

Here is an alternative way using the leaflet package. I just took two data points in your data for the purpose of demonstration. mydf <- data.frame(Observation = c(“A”, “B”), InitialLat = c(62.469722,48.0975), InitialLong = c(6.187194, 16.3108), NewLat = c(51.4749, 51.4882), NewLong = c(-0.221619, -0.302621), stringsAsFactors = FALSE) I changed the format of mydf and create … Read more