View source: R/tm_components.R
tm_scalebar | R Documentation |
Map component that adds a scale bar. As of version 4.0, tm_scalebar()
is
used instead of tm_scale_bar()
(now deprecated), because of the potential
confusion with the tm_scale_*()
scaling functions (like tm_scale_continuous()
).
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 |
text.size |
text.size |
text.color |
text.color |
color.dark |
color.dark |
color.light |
color.light |
lwd |
lwd |
position |
position |
bg.color |
bg.color |
bg.alpha |
bg.alpha |
size |
size |
stack |
stack |
frame |
frame |
frame.lwd |
frame.lwd |
frame.r |
frame.r |
margins |
margins |
z |
z |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.