map.scale {blighty} | R Documentation |
Function for drawing a simple scale on a blighty map
map.scale(pos="AUTO", width=1)
pos |
Can be AUTO (default), select , or a vector with the coordinates for the centre of the scale. |
width |
Integer value for the width of the bar. |
No return value
This function draws a simple bar for a scale with the length of the bar in km beneath it. AUTO
(default) draws the scale in the North-East corner of the map. select
prompts for locator to allow the user to place the centre of the scale manually. If you send a vector then the vector gives the position of the centre of the scale.
You can't use this with other high level plotting commands (such as oz
) because blighty()
stores the mapping parameters from it's last invocation in an object called blighty.mapinfo
from which the position, and size, of the scale is calculated.
David Lucy <d.lucy@lancaster.ac.uk>http://www.maths.lancs.ac.uk/~lucy/
blighty() # draw coastline map.scale(pos="AUTO", width=2) # automatic placing map.scale(width=2) # same as above ## Not run: map.scale(pos="select") # locator to select map.scale(pos=c(400,400)) # position vector