mf_scale | R Documentation |
Plot a scale bar.
mf_scale(size, pos = "bottomright", lwd = 1.5, cex = 0.6, col, unit = "km")
size |
size of the scale bar in units (default to km). If size is not set, an automatic size is used (1/10 of the map width) |
pos |
position. It can be one of 'bottomright', 'bottomleft', 'interactive' or a vector of two coordinates in map units (c(x, y)). |
lwd |
width of the scale bar |
cex |
cex of the text |
col |
color |
unit |
units used for the scale bar. Can be "mi" for miles, "m" for meters, or "km" for kilometers (default) |
No return value, a scale bar is displayed.
This scale bar does not work on unprojected (long/lat) maps.
mtq <- mf_get_mtq()
mf_map(mtq)
mf_scale()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.