Insert the scale into the map using R

I use the map.scale function from the library (maps) to add a scale to the scale; however, it’s very difficult to manipulate my position and size, especially if I work with different sites that require a scale scale to indicate their total area.

Is there a quick way to insert a scale scale at a specific location on a graph (map)?

+4
source share
1 answer

Changing the values ​​of grconvertX and grconvertY should do it for you.

map.scale(grconvertX(0.5,"npc"), grconvertY(0.08, "npc"),col="#0000ffff", metric = FALSE, ratio=FALSE, relwidth=0.2) 
+1
source

All Articles