View source: R/tm_components.R
tm_scalebar | R Documentation |
Map component that adds a scale bar.
tm_scalebar(
breaks,
width,
text.size,
text.color,
color.dark,
color.light,
lwd,
position,
bg.color,
bg.alpha,
size = "deprecated",
stack,
frame,
frame.lwd,
frame.r,
margins,
z
)
breaks |
breaks |
width |
width of the scale bar. Units are number of text line heights, which is similar to the number of characters. |
text.size |
text size |
text.color |
text.color |
color.dark |
color.dark |
color.light |
color.light |
lwd |
linewidth |
position |
An object created with |
bg.color |
Background color |
bg.alpha |
Background transparency |
size |
Deprecated (use |
stack |
stack with other map components, either |
frame |
frame |
frame.lwd |
frame line width |
frame.r |
Radius of the rounded frame corners. 0 means no rounding. |
margins |
margins |
z |
z |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.