View source: R/tm_components.R
tm_scalebar | R Documentation |
Map component that adds a scale bar.
tm_scalebar(
breaks,
width,
allow_clipping,
text.size,
text.color,
color.dark,
color.light,
lwd,
position,
group_id,
bg,
bg.color,
bg.alpha,
size = "deprecated",
stack,
frame,
frame.color,
frame.alpha,
frame.lwd,
frame.r,
margins,
z
)
breaks |
breaks. E.g. |
width |
width of the scale bar. Units are number of text line heights, which is similar to the number of characters. In case |
allow_clipping |
should clipping of the last label by allowed? If |
text.size |
text size |
text.color |
text.color |
color.dark |
color.dark |
color.light |
color.light |
lwd |
linewidth |
position |
The position specification of the component: an object created with |
group_id |
Component group id name. All components (e.g. legends, titles, etc) with the same |
bg |
Show background? |
bg.color |
Background color |
bg.alpha |
Background transparency |
size |
Deprecated (use |
stack |
stack with other map components, either |
frame |
frame should a frame be drawn? |
frame.color |
frame color |
frame.alpha |
frame alpha transparancy |
frame.lwd |
frame line width |
frame.r |
Radius of the rounded frame corners. 0 means no rounding. |
margins |
margins |
z |
z index, e.g. the place of the component relative to the other componets |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.