Description Usage Arguments Value
View source: R/mapcomponents.R
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.
1 |
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) |
a plotted polygon
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.