British Isles Coastline map scale

Share:

Description

Function for drawing a simple scale on a blighty map

Usage

1
map.scale(pos="AUTO", width=1)

Arguments

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.

Value

No return value

Note

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.

Author(s)

David Lucy <d.lucy@lancaster.ac.uk>http://www.maths.lancs.ac.uk/~lucy/

See Also

blighty north.pointer oz

Examples

1
2
3
4
5
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