How can I show nearest neighbour using TMAP package?

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