I want to plot a scalebar in "miles". However, no matter what I do, including reprojecting the sf object, I am getting "km" as the unit of scalebar measurement.
library(sf)
#> Linking to GEOS 3.12.1, GDAL 3.8.4, PROJ 9.3.1; sf_use_s2() is TRUE
library(tmap)
#>
#> Attaching package: 'tmap'
#> The following object is masked from 'package:datasets':
#>
#> rivers
tmap_mode("plot")
#> ℹ tmap mode set to "plot".
data(NLD_prov)
tm_shape(NLD_prov) +
tm_fill("name") +
tm_scalebar()
I want to plot a scalebar in "miles". However, no matter what I do, including reprojecting the
sf
object, I am getting "km" as the unit of scalebar measurement.Created on 2024-09-08 with reprex v2.1.1