scaleBar: Produce a very simple map scale-bar

Description Usage Arguments Value

View source: R/mapcomponents.R

Description

This function draw a simple scale-bar in the form of a box with a certain width and height (in map units) and hung on its top right corner. Further parameters such as colour and border can be modified in the normal way.

Usage

1

Arguments

x

Top left x coordinate

y

Top left y coordinate

width

The width of the bar (i.e. the scale, in the units of the plot)

height

The height of the bar (in the units of the plot)

Value

a plotted polygon


ahb108/sparch documentation built on Feb. 3, 2021, 1:21 a.m.