How can I show nearest neighbour using TMAP package?

Right now the map below is mad using the plot function

If this is related to your other post, you should probably just combine them. If not, this could probably do with a reprex.

Please see guidelines re. cross/duplicate posting here:
https://forum.posit.co/faq#keep-tidy