Now that Maptools has been retired, does anyone have a good tool for adding a scale bar to a lat / lon map where distance units may be miles, km or nautical miles?
Although gspatial provides a quick way to generate a scalebar such as shown below, the choice of units is severely limited. ```
ggplot(data = tanzania) +
geom_sf() +
xlab("Longitude") + ylab("Latitude") +
ggtitle("The United Republic of Tanzania") +
annotation_scale(location = "bl", width_hint = 0.4) +
annotation_north_arrow(location = "bl", which_north = "true",
pad_x = unit(0.0, "in"), pad_y = unit(0.2, "in"),
style = north_arrow_fancy_orienteering)